Skip to content

[Bazel CI] Failed to copy inputs to sandbox permission denied error.  #564

@sgowroji

Description

@sgowroji

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4542#0195ac95-7f90-454f-ab3f-dd894217575d

Platform: MacOS

Logs:


(05:08:04) ERROR: /Users/buildkite/builds/bk-macos-arm64-q1go/bazel-org-repo-root/bazel-skylib/tests/copy_directory/BUILD.bazel:15:15: Copying directory tests/copy_directory/dir_with_subdir failed: Could not copy inputs into sandbox: /private/var/tmp/_bazel_buildkite/0f7a0c0e5068cbecc82869727306c10a/sandbox/darwin-sandbox/12/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/tests/copy_directory/empty_dir_copy -> /private/var/tmp/_bazel_buildkite/0f7a0c0e5068cbecc82869727306c10a/sandbox/_moved_trash_dir/10 (Permission denied)

Culprit:

Steps:

git clone https://github.com/bazelbuild/bazel-skylib
git reset 25a8e9d60687fee887e54dcb9560ef08777235de  --hard
export USE_BAZEL_VERSION=69726de6a42f2795071c10514e36a2439a7d44de
bazel build --remote_download_toplevel --incompatible_config_setting_private_default_visibility --incompatible_disallow_empty_glob --noenable_workspace  //... @external_directory_tests//... @bazel_skylib_gazelle_plugin//... 

CC Greenteam @Wyverald

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions