workspace: rules_go, gazelle, go, gVisor update
This commit not only updates rules_go and friends, but also updates
gVisor, removes legacy protobuf usage and switches from using
build_configuration to a config flag for bazel
Change-Id: Idb383f35ca0fec4cb7329e9d991f08f28cf9b1fb
Reviewed-on: https://review.monogon.dev/c/monogon/+/2129
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/build/bazel_cc_fix/main.go b/build/bazel_cc_fix/main.go
index 611f1eb..2e69110 100644
--- a/build/bazel_cc_fix/main.go
+++ b/build/bazel_cc_fix/main.go
@@ -40,8 +40,8 @@
"regexp"
"strings"
- "github.com/golang/protobuf/proto"
"github.com/mattn/go-shellwords"
+ "google.golang.org/protobuf/encoding/prototext"
"source.monogon.dev/build/bazel_cc_fix/ccfixspec"
)
@@ -329,7 +329,7 @@
}
specRaw, err := os.ReadFile(*specPath)
var spec ccfixspec.CCFixSpec
- if err := proto.UnmarshalText(string(specRaw), &spec); err != nil {
+ if err := prototext.Unmarshal(specRaw, &spec); err != nil {
log.Fatalf("failed to load spec: %v", err)
}