Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kczulko committed Dec 1, 2024
1 parent 9017f49 commit 848cfcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/repo_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ nimble_install(<a href="#nimble_install-name">name</a>, <a href="#nimble_install
</pre>

Runs `nimble install` on `nimble_file` attribute which brings dependencies into the scope.
CAUTION: This "action" is not cached in repository cache by Bazel therefore it is suggested
to generate `nimble.lock` file and then use `nimble_lock` rule which is also faster than `nimble_install`.
CAUTION: Such a simple wrapper around `nimble` invocation comes with a cost of omitting Bazel's
repository cache. Therefore it is suggested to generate `nimble.lock` file and then use `nimble_lock`
repository rule (with the appropriate `nimble_lock_update` target). See `numericalnim` e2e example.

**ATTRIBUTES**

Expand Down
5 changes: 3 additions & 2 deletions nim/private/nimble/nimble_install.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ nimble_install = repository_rule(
implementation = _nimble_install_impl,
doc = """
Runs `nimble install` on `nimble_file` attribute which brings dependencies into the scope.
CAUTION: This "action" is not cached in repository cache by Bazel therefore it is suggested
to generate `nimble.lock` file and then use `nimble_lock` rule which is also faster than `nimble_install`.
CAUTION: Such a simple wrapper around `nimble` invocation comes with a cost of omitting Bazel's
repository cache. Therefore it is suggested to generate `nimble.lock` file and then use `nimble_lock`
repository rule (with the appropriate `nimble_lock_update` target). See `numericalnim` e2e example.
"""
)

0 comments on commit 848cfcf

Please sign in to comment.