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

Remove GOROOT when system's go #34

Merged
merged 1 commit into from
Oct 19, 2017
Merged

Conversation

kosukemori
Copy link
Contributor

This PR will solve #26

The followings are the points of this PR, but I'm not sure whether it's perfectly correct.

Point1: If $(goenv version) == system, don't set GOROOT in libexec/goenv-exec. Because GOROOT of system's go depends on how users installed go in system.

Point2: It's not necessary to set GOROOT in the script of goenv init -

  • In case of system's go, goenv shouldn't touch GOROOT by the same reason in Point1.
  • In other case(using goenv's go), GOROOT will be set in here. So it's not necessary in goenv init -

@syndbg
Copy link
Member

syndbg commented Oct 11, 2017

@kosukemori Thank you for the PR. Give me a day or two to think about the approach you chose.

On first read it sounds good.

@syndbg syndbg self-requested a review October 11, 2017 21:03
@syndbg
Copy link
Member

syndbg commented Oct 19, 2017

Took my sweet time, I'm happy with the approach

@syndbg syndbg merged commit a672a7f into go-nv:master Oct 19, 2017
@syndbg
Copy link
Member

syndbg commented Oct 19, 2017

Released https://github.com/syndbg/goenv/releases/tag/1.6.0 !

@kosukemori
Copy link
Contributor Author

Thanks!

syndbg added a commit that referenced this pull request Apr 14, 2019
[GH-54] Fix golang releases without patch version not being installed
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

Successfully merging this pull request may close these issues.

2 participants