Add function for generating bzlmod integrety value

This commit is contained in:
Markus Hofauer 2024-11-07 14:47:14 +01:00
parent 7ed475cb58
commit 7deb886ee9
2 changed files with 14 additions and 4 deletions

View File

@ -16,7 +16,13 @@ The plugin has a copy of [the completion script from the git repository][1].
| Alias | Command | Description |
| ------- | -------------------------------------- | ------------------------------------------------------ |
| bzb | `bazel build` | The `bazel build` command |
| bzt | `bazel test` | The `bazel test` command |
| bzr | `bazel run` | The `bazel run` command |
| bzq | `bazel query` | The `bazel query` command |
| bzb | `bazel build` | The `bazel build` command |
| bzt | `bazel test` | The `bazel test` command |
| bzr | `bazel run` | The `bazel run` command |
| bzq | `bazel query` | The `bazel query` command |
## Functions
| Function | Description |
| -------- | ---------------------------------------- |
| bzlmod_integrety | Generate bzlmod integrity value |

View File

@ -3,3 +3,7 @@ alias bzb='bazel build'
alias bzt='bazel test'
alias bzr='bazel run'
alias bzq='bazel query'
bzlmod_integrety() {
openssl dgst -sha256 -binary $1 | openssl base64 -A | sed 's/^/sha256-/'
}