clojure
4 guardrails, all at version v1.
| Guardrail | Default severity | What it checks |
|---|---|---|
clojure/dependencies-pinned | warning | Every dependency in the manifests names a single released version, or the exact commit a git dependency builds from. |
clojure/no-local-dependencies | warning | No dependency comes from a :local/root, so the build resolves everything from this commit and not from the machine it runs on. |
clojure/repositories-allowed | error | Every Maven repository the manifest adds beyond the defaults resolves from a host on the allowed list. |
clojure/version-declared | warning | The project depends on the Clojure release it builds against, and that release is no older than the configured floor. |
Shared inputs
Every clojure guardrail declares these inputs. Individual guardrails can add their own.
| Input | Description | Default |
|---|---|---|
projectDir | Directory holding the project, relative to the directory the CLI runs in. | . |
Shared collectors
Every clojure guardrail receives the facts these collectors gather. Individual guardrails can ask for more collectors of their own.
| Collector | Gathers |
|---|---|
clojure | The Clojure build in the project directory: which tool it uses, the Clojure version it depends on, the source paths and aliases it declares, the repositories it resolves from, and every dependency with its alias, origin and whether it is pinned. |
You configure every guardrail in this category the same way, in the guardrails.checks array of buildnote.json. Configuring guardrails lists every option, and Guardrails lets you search the whole library.