Skip to content

Commit

Permalink
feat: make it easy to run the CLI in the terminal
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
alexeagle committed Feb 8, 2024
1 parent adadd29 commit 667e05e
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/buildifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: buildifier
run: bazel run --enable_bzlmod //.github/workflows:buildifier.check
run: bazel run //.github/workflows:buildifier.check
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ jobs:
{"bazelversion": "5.4.0", "os": "macos-latest"},
]
exclude_windows: true

run_cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: run CLI with bzlmod
working-directory: e2e/smoke
run: bazel run @aws help
- name: run CLI with workspace
working-directory: e2e/smoke
run: bazel run --noenable_bzlmod @aws help
9 changes: 9 additions & 0 deletions aws/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ def rules_aws_dependencies():
],
)

http_archive(
name = "rules_pkg",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz",
"https://github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz",
],
sha256 = "8f9ee2dc10c1ae514ee599a8b42ed99fa262b757058f65ad3c384289ff70c4b8",
)

########
# Remaining content of the file is only used to support toolchains.
########
Expand Down
3 changes: 3 additions & 0 deletions e2e/smoke/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ local_path_override(
module_name = "aspect_rules_aws",
path = "../..",
)

aws = use_extension("@aspect_rules_aws//aws:extensions.bzl", "aws")
use_repo(aws, "aws")
7 changes: 6 additions & 1 deletion e2e/smoke/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ local_repository(
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_aws//aws:repositories.bzl", "rules_aws_dependencies")
load("@aspect_rules_aws//aws:repositories.bzl", "aws_register_toolchains", "rules_aws_dependencies")

rules_aws_dependencies()

aws_register_toolchains(
name = "aws",
aws_cli_version = "2.13.0",
)

0 comments on commit 667e05e

Please sign in to comment.