WORKSPACE: bump rules_go go 0.29 and Go to 1.17.1
The changes to nogo are from rules_go being able to use go_library
targets as part toolchain definitions. gVisor needed to be bumped
to be compatible with Go 1.17. It also needs a fix for us not having
the systemd cgroup controller.
Change-Id: I058b5c68d97809a286fbe36df00e49e55874dfd5
Reviewed-on: https://review.monogon.dev/c/monogon/+/438
Reviewed-by: Sergiusz Bazanski <serge@monogon.tech>
diff --git a/build/fietsje/render.go b/build/fietsje/render.go
index 5890411..5ad26d0 100644
--- a/build/fietsje/render.go
+++ b/build/fietsje/render.go
@@ -82,8 +82,13 @@
fmt.Fprintf(w, " patch_args = [%q],\n", "-p1")
}
fmt.Fprintf(w, " build_extra_args = [\n")
- fmt.Fprintf(w, " %q,\n", "-go_naming_convention=go_default_library")
- fmt.Fprintf(w, " %q,\n", "-go_naming_convention_external=go_default_library")
+ if d.useImportAliasNaming {
+ fmt.Fprintf(w, " %q,\n", "-go_naming_convention=import_alias")
+ fmt.Fprintf(w, " %q,\n", "-go_naming_convention_external=import_alias")
+ } else {
+ fmt.Fprintf(w, " %q,\n", "-go_naming_convention=go_default_library")
+ fmt.Fprintf(w, " %q,\n", "-go_naming_convention_external=go_default_library")
+ }
for _, arg := range d.buildExtraArgs {
fmt.Fprintf(w, " %q,\n", arg)
}