graphql-libgraphqlparser-ruby icon indicating copy to clipboard operation
graphql-libgraphqlparser-ruby copied to clipboard

Example of custom install location of graphqlparserlib

Open bessey opened this issue 7 years ago • 2 comments

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?

bessey avatar Jun 11 '18 19:06 bessey

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?

rmosolgo avatar Jun 11 '18 19:06 rmosolgo

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

bessey avatar Jun 12 '18 12:06 bessey