[Bug 1026658] New: The go package shouldn't set $GOBIN to $HOME/go/bin
http://bugzilla.suse.com/show_bug.cgi?id=1026658 Bug ID: 1026658 Summary: The go package shouldn't set $GOBIN to $HOME/go/bin Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: kgronlund@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- In the go package, the file /etc/profile.d/go.sh is installed. In that file is the following: export GOROOT=/usr/$libdir/go export GOBIN=/usr/bin export GOPATH=/usr/share/go/contrib if [ `id -u` != 0 ]; then export GOPATH=$HOME/go:/usr/share/go/contrib export GOBIN=$HOME/go/bin fi Setting GOBIN to $HOME/go/bin is extremely confusing. I would set GOPATH to point to my go directory, and then expect binaries to be installed to $GOPATH/bin. Instead, the binaries end up in another, arbitrary location. Regarding GOBIN, the upstream documenation says as following: "This should only be set if you really know what you're doing... The default should be fine." The correct thing here ought to be to set GOPATH, but to unset GOBIN so it isn't set at all, thereby defaulting to GOPATH/bin. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1026658
Chenzi Cao
http://bugzilla.suse.com/show_bug.cgi?id=1026658
http://bugzilla.suse.com/show_bug.cgi?id=1026658#c6
Jordi Massaguer
http://bugzilla.suse.com/show_bug.cgi?id=1026658
http://bugzilla.suse.com/show_bug.cgi?id=1026658#c7
--- Comment #7 from Kristoffer Gronlund
This is already in Tumbleweed. I guess it landed some time ago.
Awesome, thanks! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1026658
http://bugzilla.suse.com/show_bug.cgi?id=1026658#c8
--- Comment #8 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1026658
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1026658
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1026658
http://bugzilla.suse.com/show_bug.cgi?id=1026658#c16
--- Comment #16 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1026658
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1026658
http://bugzilla.suse.com/show_bug.cgi?id=1026658#c18
--- Comment #18 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1026658
http://bugzilla.suse.com/show_bug.cgi?id=1026658#c19
--- Comment #19 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1026658
http://bugzilla.suse.com/show_bug.cgi?id=1026658#c20
--- Comment #20 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com