Open njlr opened 1 month ago
There is a work-around to use the system installed aws
CLI.
aws.sh
#!/usr/bin/env bash
set -e
aws "$@"
BUILD.bazel
sh_binary(
name = "aws",
srcs = [ "aws.sh" ],
)
s3_sync(
name = "s3_test",
srcs = [ ":build" ],
bucket = "my_test_bucket/test",
aws = ":aws",
)
This might not be so bad if you are using Nix flakes for reproducible environments, for example.
What happened?
Try to run an
s3_sync
rule and get:It will run successfully with
--dry_run
.Version
Development (host) and target OS/architectures:
Output of
bazel --version
:Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
-
How to reproduce
Any other information?
No response