[gcs-util] Add namespace prefix iff not already set

The command-line provided -namespace argument is prepended to all upload
destinations, provided that they aren't deduplicated (they live in a
shared namespace). If the -namespace is already part of the upload
destination, don't prepend it again.

Bug: 92697
Change-Id: Iee24a3d3e31ddd5899c1471bba3210e268676610
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/683783
Reviewed-by: Ina Huh <ihuh@google.com>
Commit-Queue: Anthony Fandrianto <atyfto@google.com>
Reviewed-by: Oliver Newman <olivernewman@google.com>
2 files changed
tree: c9eb34546d00a5ac00e9a43016848296befc3a13
  1. artifacts/
  2. buildbucket/
  3. checkout/
  4. cmd/
  5. codifier/
  6. execution/
  7. flagutil/
  8. functools/
  9. gerrit/
  10. gitiles/
  11. monorail/
  12. rpcutil/
  13. scripts/
  14. third_party/
  15. vendor/
  16. .gitignore
  17. AUTHORS
  18. go.mod
  19. go.sum
  20. LICENSE
  21. manifest
  22. PATENTS
  23. README.md
README.md

infra

This repo contains tools and config files necessary to run infrastructure related to builds, code review, version control, and continuous integrations.