-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/dist: trying to build Go from source at tip on Windows / WSL incorrectly tries to download a go1.24.0 toolchain #70533
Comments
From your description, it sounds like there's something going wrong when you're building Go from source. I'm not sure if you're running into some problem that only affects the combination of Windows and WSL, or if something else is causing trouble. Here are some ideas for what you could try, and report back on what the outcome is:
CC @golang/windows. |
If I run it in bash, I get a bunch of errors. If I run it in Command Prompt, it appears to build the toolchain. Preliminary results:
Sadly I don't have access to another machine. Using this Windows machine is sort of a last resort. :-\ |
I have a few questions about this arrangement if you don't mind:
I haven't used WSL all that much, but when I have, it's so that I can run Linuxy apps and processes--wondering if there's some workflows I'm not seeing. |
TLDR: I prefer bash to PowerShell or Command Prompt. I need to run Windows-specific software, so I have a Windows machine. But all of my development experience is in Unix-based OSes, so I installed WSL to replicate that environment. As time went on, I ran into problems with this setup. One in particular was trying to use
Ideally Windows, for the reasons I mentioned above, but I would be happy with either.
I will try. :) |
what does |
|
Have you set up
The bash script bootstrap process expects to be able to read If I manually set
With a
Maybe this is solvable, but I've already bypassed the first problem of As far as workflow goes, it makes a lot more sense to me to install a Linux build of Go and use that inside WSL. You can even cross-build a Windows Go toolset from a Linux Go toolset with |
Seems to work:
|
Go version
go version go1.23.2 windows/amd64
Output of
go env
in your module/workspace:What did you do?
I am using a combination of Windows and WSL. My
go
installation is in Windows; I havego
as a symlink to/mnt/c/Program Files/Go/bin/go.exe
. My shell is a WSL bash shell.I cloned the Go source repo as per https://go.dev/doc/contribute#gerrit_overview:
When I tried to run
./all.bash
, I get this error:Indeed, all
go
commands return this error when I am in this directory:Here is the cloned
go.mod
file:What did you see happen?
What did you expect to see?
The text was updated successfully, but these errors were encountered: