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

Test with Go 1.21 #1635

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/go_repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def _go_repository_impl(ctx):
fail("one of urls, commit, tag, or importpath must be specified")

env = read_cache_env(ctx, go_env_cache)
print(env)
env_keys = [
# Respect user proxy and sumdb settings for privacy.
# TODO(jayconrod): gazelle in go_repository mode should probably
Expand Down
3 changes: 3 additions & 0 deletions tests/bcr/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ bazel_dep(name = "rules_go", version = "0.39.1", repo_name = "my_rules_go")
# patches beyond what Gazelle can generate.
bazel_dep(name = "circl", version = "1.3.3")

go_sdk = use_extension("@my_rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.21.1")

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")

# Validate a go.mod replace directive works.
Expand Down
Loading