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

Docs for migrating to version 2 #89

Closed
GrahamWalters opened this issue Jul 24, 2019 · 3 comments
Closed

Docs for migrating to version 2 #89

GrahamWalters opened this issue Jul 24, 2019 · 3 comments
Assignees

Comments

@GrahamWalters
Copy link

First off, thanks for the great tool. I've run into a few problems since upgrading from version 1.X brew install --HEAD goenv

Previously I had the following in my .bash_profile, which seemed to work ok

if which goenv > /dev/null; then eval "$(goenv init -)"; fi
export GOPATH="$HOME/go"
export PATH="$GOROOT/bin:$PATH"
export PATH="$GOPATH/bin:$PATH"

The docs for GOENV_DISABLE_GOPATH specify:

It's recommend that you use this (as set to 0) to avoid mixing multiple versions of golang packages at GOPATH when using different versions of golang. See #72 (comment)

So now I have the following in my .bash_profile and I'm leaving goenv to manage my GOPATH

if which goenv > /dev/null; then eval "$(goenv init -)"; fi
export PATH="$GOROOT/bin:$PATH"
export PATH="$GOPATH/bin:$PATH"

Currently my projects are all in the $HOME/go/src dir:

/Users/gw/go/src/gitlab.com/GrahamWalters/project-a (1.11.4)
/Users/gw/go/src/gitlab.com/GrahamWalters/project-b (1.12.7)
  1. Can you confirm I should be moving them into the versioned dirs $HOME/go/version/src?
/Users/gw/go/1.11.4/src/gitlab.com/GrahamWalters/project-a (1.11.4)
/Users/gw/go/1.12.7/src/gitlab.com/GrahamWalters/project-b (1.12.7)
  1. Alternatively, is it possible to only separate the binaries? Something like the following
/Users/gw/go/src/gitlab.com/GrahamWalters/project-a (1.11.4)
/Users/gw/go/src/gitlab.com/GrahamWalters/project-b (1.12.7)
/Users/gw/go/1.11.4/bin/project-a
/Users/gw/go/1.12.7/bin/project-b
@syndbg syndbg self-assigned this Jul 25, 2019
@grosser
Copy link

grosser commented Mar 1, 2020

@dmlittle can this please get released or at least the readme updated to use --HEAD, just came back to this again because a fresh install refused to install 1.13

@dmlittle
Copy link
Contributor

dmlittle commented Mar 1, 2020

@grosser I've contributed PRs adding new versions of Go to goenv but I'm not the owner/maintainer of this project. I think you might have intended to tag @syndbg?

@grosser
Copy link

grosser commented Mar 1, 2020 via email

@syndbg syndbg closed this as completed Oct 16, 2022
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

4 participants