Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activefacts doesn't work if ruby is installed under $HOME #17

Open
kirillrdy opened this issue Mar 1, 2018 · 5 comments
Open

Activefacts doesn't work if ruby is installed under $HOME #17

kirillrdy opened this issue Mar 1, 2018 · 5 comments

Comments

@kirillrdy
Copy link

Most ruby version managers eg rvm and rbenv install ruby under $HOME, which breaks cql compiler

[kirillvr@yao bin]$ ./cql 
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Using work area gems in /home/kirillvr/250/lib/ruby/gems/2.5.0/gems from activefacts
The path `/home/kirillvr/250/lib/ruby/gems/2.5.0/gems/api` does not exist.

on a good note, looks like schema_compositor doesn't have same issue

@cjheath
Copy link
Owner

cjheath commented Mar 1, 2018

I have no idea where this error message is coming from. Nothing in CQL makes reference to git, so why is git complaining? Is this because cql requires bundler/setup?

@kirillrdy
Copy link
Author

i think its the code in Gemfile that tries to detect work area gems

@cjheath
Copy link
Owner

cjheath commented Mar 1, 2018

I can see why this is a problem, but not why it calls git?
if this_file =~ %r{\A#{ENV['HOME']}}i and !ENV['USE_INSTALLED']

@kirillrdy
Copy link
Author

maybe bundler calls git with that path, and git throws that error

@cjheath
Copy link
Owner

cjheath commented Mar 1, 2018

My gemfiles use gemspec, and the gemspec files use git ls-files so perhaps that's it. But I've never had a problem with that before, including with version managers installing gems under $HOME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants