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

release: cannot install from .pkg into any dir except /usr/local/go #16409

Open
sathishvj opened this issue Jul 18, 2016 · 8 comments

Comments

@sathishvj
Copy link

commented Jul 18, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    1.7rc2
  2. What operating system and processor architecture are you using (go env)?
    Mac OS 10.11.4, darwin amd64
  3. What did you do?
    I installed 1.7rc2 from the pkg build (go1.7rc2.darwin-amd64.pkg). I had set GOROOT to a different directory, but it always installs to /usr/local/go.

The documentation earlier, if I remember right, had a way to install to a different directory but even that is not there.

Is there no way to install it to a different directory?

@ianlancetaylor ianlancetaylor changed the title Cannot install from .pkg into any dir except /usr/local/go release: cannot install from .pkg into any dir except /usr/local/go Jul 18, 2016

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jul 18, 2016

@geosoft1

This comment has been minimized.

Copy link

commented Jul 18, 2016

use go1.7rc2.darwin-amd64.tar.gz instead .pkg and will work.

@sathishvj

This comment has been minimized.

Copy link
Author

commented Jul 18, 2016

But shouldn't .pkg also respect the go env values?

@geosoft1

This comment has been minimized.

Copy link

commented Jul 18, 2016

according with dfc

These binaries have a $GOROOT value of /usr/local/go and recommend you unpack them into that location.

i always use the archive for other locations nor pkg because it works. (for stable releases i use this project).

@broady

This comment has been minimized.

Copy link
Member

commented Jul 18, 2016

There is a related issue with the Windows installer (#16305) whereby users may choose an alternate installation directory, but two installations cannot coexist.

Let's look into making this user-configurable, but once we do, it'll have the same problem as the Windows installer.

@broady broady added this to the Go1.8 milestone Jul 18, 2016

@quentinmit quentinmit added the NeedsFix label Oct 10, 2016

@rsc

This comment has been minimized.

Copy link
Contributor

commented Oct 27, 2016

@broady what's the status here?

@bradfitz bradfitz modified the milestones: Go1.9, Go1.8 Dec 15, 2016

@bradfitz

This comment has been minimized.

Copy link
Member

commented Dec 15, 2016

Kicking down the road, since nobody owns this and it's not a regression.

@bradfitz bradfitz modified the milestones: Unplanned, Go1.9 Jul 6, 2017

@bradfitz

This comment has been minimized.

Copy link
Member

commented Jul 6, 2017

I'm not sure this is a problem.

If you have opinions about installation directory, untar it there.

If you want the easy way, accept the conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.