Skip to content

Guardrails

clojure ​

4 guardrails, all at version v1.

GuardrailDefault severityWhat it checks
clojure/dependencies-pinnedwarningEvery dependency in the manifests names a single released version, or the exact commit a git dependency builds from.
clojure/no-local-dependencieswarningNo dependency comes from a :local/root, so the build resolves everything from this commit and not from the machine it runs on.
clojure/repositories-allowederrorEvery Maven repository the manifest adds beyond the defaults resolves from a host on the allowed list.
clojure/version-declaredwarningThe 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.

InputDescriptionDefault
projectDirDirectory 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.

CollectorGathers
clojureThe 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.

Buildnote Limited
Registered in England and Wales, Reg: 16140412