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

[go] missing go.env #18166

Closed
2 of 7 tasks
AeliusSaionji opened this issue Aug 14, 2023 · 1 comment · Fixed by #18188
Closed
2 of 7 tasks

[go] missing go.env #18166

AeliusSaionji opened this issue Aug 14, 2023 · 1 comment · Fixed by #18188
Labels

Comments

@AeliusSaionji
Copy link

Description / Steps to reproduce the issue

On first install, the go environment variables are not all populated. In particular, GOPROXY is empty and this prevents downloading dependencies.

It appears a recent change in go expects a go.env in GOROOT?
golang/go#61928 (comment)

archlinux appears to be inlcuding this file, https://gitlab.archlinux.org/archlinux/packaging/packages/go/-/commit/97e19acbc78f2b2a19f6ed25aee510669d70fc65 (thanks biswa96)

Reproduce build failures by...

  1. go clear -cache -modcache
  2. try to build something with a remote dependency.

Expected behavior

Go environment populated with whatever defaults required to build packages.

Actual behavior

Attempts to build packages fail as remote dependencies cannot be downloaded

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

No response

@AeliusSaionji AeliusSaionji changed the title [go] [go] missing go.env Aug 14, 2023
@MehdiChinoune
Copy link
Collaborator

Building android-tools fails:

  [184/488] Generating err_data.c
  FAILED: vendor/boringssl/crypto/err_data.c C:/_/B/src/build-CLANG64/vendor/boringssl/crypto/err_data.c 
  cmd.exe /C "cd /D C:\_\B\src\android-tools-33.0.3p2\vendor\boringssl\crypto\err && C:\msys64\clang64\bin\go.exe run err_data_generate.go > C:/_/B/src/build-CLANG64/vendor/boringssl/crypto/err_data.c"
  go: golang.org/x/[email protected]: GOPROXY list is not the empty string, but contains no entries

I think the only thing that changed since latest successful build is "go: Update to 1.21.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants