Optionally process symlinks pointing outside exec root (#422)

Previously if `TreeSymlinkOpts.Preserved` was set to `true`, symlinks
pointing outside of the exec root would always be rejected. However, it
can be useful to preserve symlinks by default while replacing them with
the targeted file if the targeted file is outside of the exec root.

So add a new `TreeSymlinkOpts.MaterializeOutsideExecRoot` option that
enables this behavior if set to true.

See https://crbug.com/1216363 for context on why this is useful.
3 files changed
tree: 34bb7492ec31501c459357baaa1bc837af3c84f6
  1. .bazelci/
  2. .githooks/
  3. .github/
  4. external/
  5. go/
  6. .gitignore
  7. .golangci.yml
  8. AUTHORS
  9. BUILD.bazel
  10. check-gofmt.sh
  11. check-golint.sh
  12. CONTRIBUTING.md
  13. CONTRIBUTORS
  14. go.mod
  15. go.sum
  16. LICENSE
  17. README.md
  18. remote-apis-sdks-deps.bzl
  19. setup-githooks.sh
  20. WORKSPACE
README.md

Remote Execution API SDKs

CI status: Build Status

PkgGoDev

This repository contains SDKs for the Remote Execution API.

See each language subdirectory's README.md for more specific instructions on using the SDK for that language.