Skip to content

Commit

Permalink
Test with Go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Sep 14, 2023
1 parent f9a115f commit af34ba9
Show file tree
Hide file tree
Showing 3 changed files with 437 additions and 402 deletions.
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

0 comments on commit af34ba9

Please sign in to comment.