diff --git a/plugins/bazel/README.md b/plugins/bazel/README.md index e7644fc1a..a8445387f 100644 --- a/plugins/bazel/README.md +++ b/plugins/bazel/README.md @@ -25,4 +25,4 @@ The plugin has a copy of [the completion script from the git repository][1]. | Function | Description | | -------- | ---------------------------------------- | -| bzlmod_integrety | Generate bzlmod integrity value | +| sri-hash | Generate SRI hash used by bzlmod | diff --git a/plugins/bazel/bazel.plugin.zsh b/plugins/bazel/bazel.plugin.zsh index 7fc126c5c..818d5652b 100644 --- a/plugins/bazel/bazel.plugin.zsh +++ b/plugins/bazel/bazel.plugin.zsh @@ -4,6 +4,6 @@ alias bzt='bazel test' alias bzr='bazel run' alias bzq='bazel query' -bzlmod_integrety() { +sri-hash() { openssl dgst -sha256 -binary $1 | openssl base64 -A | sed 's/^/sha256-/' }