Skip to content

Commit

Permalink
Merge branch 'master' into chore/dependabot-for-gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aignas authored Oct 26, 2023
2 parents 10d0a71 + e67f40b commit af79026
Show file tree
Hide file tree
Showing 10 changed files with 699 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"integrity": "**leave this alone**",
"integrity": "",
"strip_prefix": "",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/bazel-*
/tools/bin/
bazel-*
user.bazelrc
13 changes: 8 additions & 5 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ config_setting(

alias(
name = "shellcheck",
actual = select({
":darwin_x86_64": "@shellcheck_darwin_amd64//:shellcheck",
":linux_aarch64": "@shellcheck_linux_arm64//:shellcheck",
":linux_x86_64": "@shellcheck_linux_amd64//:shellcheck",
}),
actual = select(
{
":darwin_x86_64": "@shellcheck_darwin_amd64//:shellcheck",
":linux_aarch64": "@shellcheck_linux_arm64//:shellcheck",
":linux_x86_64": "@shellcheck_linux_amd64//:shellcheck",
},
no_match_error = "binaries for your platform could not be found",
),
visibility = ["//visibility:public"],
)
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ This document is maintaining changes since the last released version (0.1.1)

## Unreleased

Nothing yet
### Changed

* `extensions.bzl` file is not internal.
* `@rules_shellcheck//:shellcheck` target now gives a more helpful error message.

## v0.2.1

Expand Down
8 changes: 5 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
module(
name = "rules_shellcheck",
version = "0.0.0",
version = "0.2.4",
compatibility_level = 1,
)

shellcheck_dependencies = use_extension("@rules_shellcheck//:extensions.bzl", "shellcheck_dependencies")
bazel_dep(name = "platforms", version = "0.0.7")

deps = use_extension("//internal:extensions.bzl", "shellcheck_dependencies")
use_repo(
shellcheck_dependencies,
deps,
"shellcheck_darwin_amd64",
"shellcheck_linux_amd64",
"shellcheck_linux_arm64",
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Shellcheck rules for bazel

Now you do not need to depend on the system shellcheck version in your bazel-managed (mono)repos.
Now you do not need to depend on the system `shellcheck` version in your bazel-managed (mono)repos.

[![Build Status](https://github.com/aignas/rules_shellcheck/workflows/CI/badge.svg)](https://github.com/aignas/rules_shellcheck/actions)

Expand All @@ -25,3 +25,7 @@ shellcheck_test(
severity = "warning",
)
```

Note: this is a simple project that allows me to learn about various bazel concepts. Feel free to create PRs contributing to the project or consider using [rules_lint].

[rules_lint]: https://github.com/aspect-build/rules_lint
2 changes: 1 addition & 1 deletion examples/bzlmod/.bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
common --experimental_enable_bzlmod
common --enable_bzlmod
Loading

0 comments on commit af79026

Please sign in to comment.