Skip to content

--experimental_remote_download_outputs breaks symlink outputs #8581

@philwo

Description

@philwo

Description of the problem / feature request:

When using --experimental_remote_download_outputs no matter whether =minimal or =toplevel, Bazel fails to build rules_go with these errors:

(13:01:33) ERROR: /workdir/tests/core/go_path/BUILD.bazel:5:2: output 'tests/core/go_path/link_path/pkg/linux_amd64/example.com/repo/cmd/bin.a' is a dangling symbolic link
(13:01:33) ERROR: /workdir/tests/core/go_path/BUILD.bazel:5:2: output 'tests/core/go_path/link_path/pkg/plan9_arm/example.com/repo/cmd/bin.a' is a dangling symbolic link
(13:01:33) ERROR: /workdir/tests/core/go_path/BUILD.bazel:5:2: output 'tests/core/go_path/link_path/pkg/linux_amd64/example.com/repo/pkg/lib.a' is a dangling symbolic link
(13:01:33) ERROR: /workdir/tests/core/go_path/BUILD.bazel:5:2: Couldn't build file tests/core/go_path/link_path/src/example.com/repo/cmd/bin/bin.go: not all outputs were created or valid

Failing build with the flag: https://buildkite.com/bazel-testing/rules-go-golang/builds/181
Working build without the flag: https://buildkite.com/bazel-testing/rules-go-golang/builds/182

What operating system are you running Bazel on?

Fails on Linux and macOS.

What's the output of bazel info release?

Bazel 0.26.1

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)team-Remote-ExecIssues and PRs for the Execution (Remote) teamtype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions