Skip to content

nix: crane check improvements#23

Open
nothingmuch wants to merge 1 commit into
mainfrom
shortrev-check-names
Open

nix: crane check improvements#23
nothingmuch wants to merge 1 commit into
mainfrom
shortrev-check-names

Conversation

@nothingmuch
Copy link
Copy Markdown
Collaborator

@nothingmuch nothingmuch commented May 28, 2026

Refactors and cleans up some crane related derivations.

@nothingmuch nothingmuch force-pushed the shortrev-check-names branch from 4598651 to edaf78b Compare May 28, 2026 01:30
Introduces checkArgs and use it in all check derivations. It modifies
commonArgs:

version = shortRev makes each derivation name include the commit hash,
so both nix log output and nom tree display distinguish checks across
commits during scrubbing.

doInstallCargoArtifacts = false skips installation of cargo artifacts
(used for caching deps in crane derivations).

dontFixup = true skips patchelf/RPATH shrinking for check derivations
that have no installable output.

Replace CARGO_PROFILE = "dev" with CARGO_PROFILE = "" in coverage and
clippy derivations. When empty, crane's cargoWithProfile injects no
--profile flag, letting cargo choose the appropriate profile for each
command (dev for check/test, release for build). Note that crane's
default is "release", which is a the default for package builds with
workspace dependency caching.
@nothingmuch nothingmuch force-pushed the shortrev-check-names branch from edaf78b to 66e7356 Compare May 28, 2026 01:36
Comment thread nix/checks.nix
// {
cargoArtifacts = cargoArtifactsDev;
CARGO_PROFILE = "dev";
CARGO_PROFILE = "";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: since checkArgs already sets CARGO_PROFILE = "" on line 18, isnt this redundant here?

Copy link
Copy Markdown

@0xZaddyy 0xZaddyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

Copy link
Copy Markdown

@bc1cindy bc1cindy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants