From: Katherine Cox-Buday <cox.katherine.e@gmail.com>
To: 50605@debbugs.gnu.org
Cc: Sarah Morgensen <iskarian@mgsn.dev>
Subject: bug#50605: go: Commit d36c73b8a8f breaks `go tool`
Date: Wed, 15 Sep 2021 12:29:53 -0500 [thread overview]
Message-ID: <87ilz13fxq.fsf@gmail.com> (raw)
Aside from not being able to issue ~go tool~ commands, things like
~gopls~[1] are broken as well.
By design, ~GOTOOLDIR~ cannot be set from the user's environment[2].
This commit moved the directory, but did not update the ~GOTOOLDIR~
path.
#+begin_example
$ env |grep GOTOOLDIR
$ go env GOTOOLDIR
/home/katco/.guix-profile/pkg/tool/linux_amd64
$ export GOTOOLDIR=/tmp
$ env |grep GOTOOLDIR
GOTOOLDIR=/tmp
$ go env GOTOOLDIR
/home/katco/.guix-profile/pkg/tool/linux_amd64
$ go env -w GOTOOLDIR=/tmp
go env -w: GOTOOLDIR cannot be modified
$ [ -e $(go env GOTOOLDIR) ] || echo Nope, not here.
Nope, not here.
$ [ -e /home/katco/.guix-profile/lib/go/pkg/tool ] && echo Here it is
Here it is
#+end_example
I think these are the lines to blame:
#+begin_example
d36c73b8a8f (Sarah Morgensen 2021-09-02 763) (for-each
d36c73b8a8f (Sarah Morgensen 2021-09-02 764) (lambda (file)
d36c73b8a8f (Sarah Morgensen 2021-09-02 765) (copy-recursively file (string-append out "/lib/go/" file)))
d36c73b8a8f (Sarah Morgensen 2021-09-02 766) '("lib" "VERSION" "pkg/include" "pkg/tool"))
#+end_example
[1] - https://pkg.go.dev/golang.org/x/tools/gopls
[2] - https://github.com/golang/go/issues/10264#issuecomment-91394026
--
Katherine
next reply other threads:[~2021-09-15 17:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-15 17:29 Katherine Cox-Buday [this message]
2021-09-16 14:36 ` bug#50605: go: Commit d36c73b8a8f breaks `go tool` Katherine Cox-Buday
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilz13fxq.fsf@gmail.com \
--to=cox.katherine.e@gmail.com \
--cc=50605@debbugs.gnu.org \
--cc=iskarian@mgsn.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.