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

Add support for Go 1.21 #417

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Add support for Go 1.21 #417

merged 1 commit into from
Nov 3, 2023

Conversation

stewartbutler
Copy link
Contributor

Go 1.21 added a requirement for a 'go.env' file. Without that file, Go will throw an error like:

Error in fail: failed to fetch org_golang_google_grpc_cmd_protoc_gen_go_grpc: fetch_repo: google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0: GOPROXY list is not the empty string, but contains no entries

This commit adds it to the SDK exposed by rules_nixpkgs so that it is compatible with rules_go.

See:

@stewartbutler stewartbutler marked this pull request as ready for review September 20, 2023 17:15
Copy link
Collaborator

@malt3 malt3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. My team is using this patch in our Go monorepo for over a month now.
This works for old and new go versions and passes the unit tests on my machine.

Just a very gentle reminder that this PR is required for go 1.21 support and can be merged @benradf @aherrmann

Copy link
Member

@avdv avdv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@benradf benradf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay in reviewing. Looks good 👍

@benradf benradf added the merge-queue merge on green CI label Nov 3, 2023
@avdv
Copy link
Member

avdv commented Nov 3, 2023

@Mergifyio rebase

Go 1.21 added a requirement for a 'go.env' file. Without that file, Go
will throw an error like:
```
Error in fail: failed to fetch org_golang_google_grpc_cmd_protoc_gen_go_grpc: fetch_repo: google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0: GOPROXY list is not the empty string, but contains no entries
```

This commit adds it to the SDK exposed by rules_nixpkgs so that it is
compatible with rules_go.

See:
- bazel-contrib/rules_go#3665
- bazel-contrib/rules_go#3666
Copy link
Contributor

mergify bot commented Nov 3, 2023

rebase

✅ Branch has been successfully rebased

@mergify mergify bot merged commit 7a408cb into tweag:master Nov 3, 2023
15 checks passed
@mergify mergify bot removed the merge-queue merge on green CI label Nov 3, 2023
avdv added a commit to tweag/gazelle_haskell_modules that referenced this pull request Mar 19, 2024
Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`.

See tweag/rules_nixpkgs#417
avdv added a commit to tweag/gazelle_haskell_modules that referenced this pull request Mar 19, 2024
Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`.

See tweag/rules_nixpkgs#417
avdv added a commit to tweag/gazelle_haskell_modules that referenced this pull request Mar 19, 2024
Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`.

See tweag/rules_nixpkgs#417
avdv added a commit to tweag/gazelle_cabal that referenced this pull request May 22, 2024
Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`.

See tweag/rules_nixpkgs#417
avdv added a commit to tweag/gazelle_cabal that referenced this pull request May 22, 2024
Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`.

See tweag/rules_nixpkgs#417
avdv added a commit to tweag/gazelle_cabal that referenced this pull request May 22, 2024
Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`.

See tweag/rules_nixpkgs#417
avdv added a commit to tweag/gazelle_cabal that referenced this pull request May 22, 2024
Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`.

See tweag/rules_nixpkgs#417
avdv added a commit to tweag/gazelle_cabal that referenced this pull request May 29, 2024
Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`.

See tweag/rules_nixpkgs#417
avdv added a commit to tweag/gazelle_haskell_modules that referenced this pull request Sep 3, 2024
Newer go versions need at least rules_nixpkgs 0.11, see tweag/rules_nixpkgs#417.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants