Skip to content

Commit

Permalink
Use go 1.20 for now
Browse files Browse the repository at this point in the history
Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`.

See tweag/rules_nixpkgs#417
  • Loading branch information
avdv committed May 29, 2024
1 parent b0e4452 commit a4d7ec9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ http_archive(

load("@rules_nixpkgs_go//:go.bzl", "nixpkgs_go_configure")

nixpkgs_go_configure(repository = "@nixpkgs")
nixpkgs_go_configure(
attribute_path = "go_1_20",
repository = "@nixpkgs",
)

load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies")

Expand Down
5 changes: 4 additions & 1 deletion example/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ http_archive(

load("@rules_nixpkgs_go//:go.bzl", "nixpkgs_go_configure")

nixpkgs_go_configure(repository = "@nixpkgs")
nixpkgs_go_configure(
attribute_path = "go_1_20",
repository = "@nixpkgs",
)

load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies")

Expand Down
5 changes: 4 additions & 1 deletion tests/alternative-deps/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ http_archive(

load("@rules_nixpkgs_go//:go.bzl", "nixpkgs_go_configure")

nixpkgs_go_configure(repository = "@nixpkgs")
nixpkgs_go_configure(
attribute_path = "go_1_20",
repository = "@nixpkgs",
)

load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies")

Expand Down

0 comments on commit a4d7ec9

Please sign in to comment.