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

Error when GOPATH contains multiple entries (master) #272

Closed
dragonmaus opened this issue Dec 1, 2018 · 3 comments · Fixed by #280
Closed

Error when GOPATH contains multiple entries (master) #272

dragonmaus opened this issue Dec 1, 2018 · 3 comments · Fixed by #280
Labels

Comments

@dragonmaus
Copy link

When nash is installed from git master (make install), it returns the following error if GOPATH contains multiple path entries:
error[stat /home/dragon/src/go/ext:/home/dragon/src/go/src/github.com/NeowayLabs/nash: no such file or directory] validating nashroot

Changing GOPATH to a single entry prevents the error, but is not a sustainable solution.

@lborguetti lborguetti added the bug label Dec 1, 2018
@i4ki
Copy link
Collaborator

i4ki commented Jun 16, 2019

What should we do in this case? Use the first gopath directory?

@dragonmaus
Copy link
Author

@tiago4orion It should ideally follow go's own behaviour; namely, search all entries of GOPATH when looking for packages, and use the first entry when writing anything.

@i4ki
Copy link
Collaborator

i4ki commented Jun 16, 2019

In this case I think the best thing we can do is avoid look into GOPATH when inferring NASHROOT. Then the behaviour will be: look if NASHROOT variable is set, if not use $HOME/nashroot.

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

Successfully merging a pull request may close this issue.

3 participants