Lorenz Brun | c2e3b1b | 2021-11-11 11:06:41 +0100 | [diff] [blame] | 1 | From 5cf776eb8f872f78cf7325c39fbfe1777f702407 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mike Danese <mikedanese@google.com> |
| 3 | Date: Fri, 26 Feb 2021 13:39:16 -0800 |
| 4 | Subject: [PATCH] fix go_genrule for 1.16 |
| 5 | |
| 6 | --- |
| 7 | defs/go.bzl | 3 +++ |
| 8 | 1 file changed, 3 insertions(+) |
| 9 | |
| 10 | diff --git a/defs/go.bzl b/defs/go.bzl |
| 11 | index f4617e1..8873253 100644 |
| 12 | --- a/defs/go.bzl |
| 13 | +++ b/defs/go.bzl |
| 14 | @@ -90,6 +90,9 @@ def _go_genrule_impl(ctx): |
| 15 | "PATH": ctx.configuration.host_path_separator.join(["/usr/local/bin", "/bin", "/usr/bin"]), |
| 16 | "GOPATH": paths.dirname(gopath_placeholder.path), |
| 17 | "GOROOT": paths.dirname(go.sdk.root_file.path), |
| 18 | + # hack to tie us over until we fix this to use modules or stop using |
| 19 | + # it. |
| 20 | + "GO111MODULE": "off", |
| 21 | }) |
| 22 | |
| 23 | ctx.actions.run( |