Skip to content

Action input symlink into directory doesn't work with --remote_download_minimal #15678

@tjgq

Description

@tjgq

Description of the bug:

Actions whose inputs contain a symlink into a directory (tree artifact) fail to build remotely with --remote_download_minimal.

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Minimal repro at https://github.com/tjgq/bazel-symlink-into-dir.

Some notes:

  • Doesn't repro without --remote_download_minimal.
  • Doesn't repro when run locally or with a local --disk_cache.
  • Symlinks into files (i.e., regular artifacts) work fine.

Which operating system are you running Bazel on?

Linux

What is the output of bazel info release?

development version

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

Bazel built near head @ d7eaa0b. However, issue also exists in 5.2.0 (i.e., it's not a regression).

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

git@github.com:tjgq/bazel-symlink-into-dir.git
141c22a32af5ed47276e7a76921637ec373774e6
141c22a32af5ed47276e7a76921637ec373774e6

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    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