From 4f9f2913e4f98595b57aa76373dba8d7be9d9ec6 Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Wed, 22 May 2024 13:50:17 +0200 Subject: [PATCH] Use go 1.20 for now Using go 1.21 fails with `GOPROXY list is not the empty string, but contains no entries`. See https://github.com/tweag/rules_nixpkgs/pull/417 --- WORKSPACE | 5 ++++- example/WORKSPACE | 5 ++++- tests/alternative-deps/WORKSPACE | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index fed86b1..7bd7ddb 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -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") diff --git a/example/WORKSPACE b/example/WORKSPACE index ba1ebd1..5f2cd98 100644 --- a/example/WORKSPACE +++ b/example/WORKSPACE @@ -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") diff --git a/tests/alternative-deps/WORKSPACE b/tests/alternative-deps/WORKSPACE index 9638052..7c70ba3 100644 --- a/tests/alternative-deps/WORKSPACE +++ b/tests/alternative-deps/WORKSPACE @@ -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")