Skip to content

Argument list too long linking on mac #1637

@BenTheElder

Description

@BenTheElder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdarwinAffects macOS / iOS hosts or targetsgok8sAffects KuberneteswindowsAffects Windows hosts or targets

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions