On kubernetes master branch bazel build //test/e2e:e2e.test fails with:
Action failed to execute: java.io.IOException: Cannot run program "/usr/bin/sandbox-exec" (in directory "/private/var/tmp/_bazel_bentheelder/c99a7ed2e9dbc7676356495197988838/sandbox/darwin-sandbox/1/execroot/__main__"): error=7, Argument list too long
(above this is a massive command line with lots of args like -dep '//staging/src/k8s.io/apimachinery/pkg/api/meta/table:go_default_library=k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/api/meta/table=bazel-out/darwin-fastbuild/bin/staging/src/k8s.io/apimachinery/pkg/api/meta/table/darwin_amd64_stripped/go_default_library~/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/api/meta/table.a'
It looks like this is a massive link option, which become to large after updating to rules go 0.12
1ad1c8c7f8 Merge pull request #64122 from ixdy/update-rules_go-and-gazelle seems to be the breaking point.
/cc @ixdy
reported by @spiffxp
On kubernetes master branch
bazel build //test/e2e:e2e.testfails with:Action failed to execute: java.io.IOException: Cannot run program "/usr/bin/sandbox-exec" (in directory "/private/var/tmp/_bazel_bentheelder/c99a7ed2e9dbc7676356495197988838/sandbox/darwin-sandbox/1/execroot/__main__"): error=7, Argument list too long(above this is a massive command line with lots of args like
-dep '//staging/src/k8s.io/apimachinery/pkg/api/meta/table:go_default_library=k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/api/meta/table=bazel-out/darwin-fastbuild/bin/staging/src/k8s.io/apimachinery/pkg/api/meta/table/darwin_amd64_stripped/go_default_library~/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/api/meta/table.a'It looks like this is a massive link option, which become to large after updating to rules go 0.12
1ad1c8c7f8Merge pull request #64122 from ixdy/update-rules_go-and-gazelleseems to be the breaking point./cc @ixdy
reported by @spiffxp