Skip to content

Commit

Permalink
Move attribute check around
Browse files Browse the repository at this point in the history
  • Loading branch information
phst committed Jan 5, 2025
1 parent 61c3f7c commit 998bcee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions elisp/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _elisp_http_archive_impl(ctx):
"""Implementation of the `elisp_http_archive` repository rule."""
ctx.download_and_extract(
url = ctx.attr.urls,
integrity = ctx.attr.integrity or fail("missing archive checksum"),
integrity = ctx.attr.integrity,
stripPrefix = ctx.attr.strip_prefix,
)
ctx.template(
Expand Down Expand Up @@ -102,7 +102,7 @@ def _elisp_impl(ctx):
_elisp_http_archive(
name = arch.name,
urls = arch.urls,
integrity = arch.integrity,
integrity = arch.integrity or fail("missing archive checksum"),
strip_prefix = arch.strip_prefix,
target_name = arch.target_name,
exclude = arch.exclude,
Expand Down
2 changes: 1 addition & 1 deletion examples/ext/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 998bcee

Please sign in to comment.