Go.mod file for Interpreter challenge

When opening the GO project repo clean from scratch in VSCode, it has the following issues highlighted:

In go.mod:

packages.Load error: err: exit status 1: stderr: go: downloading go1.22 (windows/amd64)
go: download go1.22 for windows/amd64: toolchain not available

This seems to be a known issue, where the solution would be to change from
go 1.22 to go 1.22.0: cmd/go: download go1.22 for darwin/arm64: toolchain not available · Issue #65568 · golang/go · GitHub

Great job identifying this issue and its solution! :+1:

Based on your suggestion, we’re making some changes. You can view the PRs here: interpreter, sqlite, redis, grep, dns-server, http-server, bittorrent, git, shell, and docker.


While investigating, we were able to replicate the bug with an older version of Go. However, just changing go.mod didn’t fix it, we had to change the GOTOOLCHAIN environment variable as well.

@aaron-hwang Could you please share (1) the output of go env when run from within your project folder? And (2) the content of your GOENV config file?

For me, GOENV is at /Users/andy/Library/Application Support/go/env. Yours should be at a different path, but visible once you run go env.

This’ll help us figure out what additional changes might be required.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.