Example of custom install location of graphqlparserlib
I'm trying to get my Travis tests not to require sudo. To do so I have had to install libgraphqlparser to a custom directory. That's ok:
if [ ! -d $HOME/gql ]; then
wget https://github.com/graphql/libgraphqlparser/archive/v0.7.0.tar.gz
tar -xzvf v0.7.0.tar.gz
cd libgraphqlparser-0.7.0/ && cmake . && make && make DESTDIR=$HOME/gql install && cd ..
fi
But I can't work out what incantation of
gem install graphql-libgraphqlparser -- --with-graphqlparserlib=XXX
will actually use that directory. Looking here I'm not sure it ever will, seems like the paths checked are hardcoded?
Yeah, I think you're right, although, I'm not really sure 😩
If you fork the gem and remove those hardcoded paths, then install your fork, does it work ok?
I took a swing at the problem. On my branch this is the config necessary in Travis to build without sudo: https://gist.github.com/bessey/393158379eae13fb14c7ba53b93b7420