Skip to content

Fix package-related CLI messages#15349

Merged
xokdvium merged 3 commits intoNixOS:masterfrom
roberth:fix-cli-messages
Feb 27, 2026
Merged

Fix package-related CLI messages#15349
xokdvium merged 3 commits intoNixOS:masterfrom
roberth:fix-cli-messages

Conversation

@roberth
Copy link
Member

@roberth roberth commented Feb 26, 2026

Motivation

Make changes to diagnostics observable.

Leveling for eval caching. Can't build on broken code. Petty, I know ;)

Commits

  1. straightforward characterization test. .cmd starts with exit code (sue me)
  2. fix a silly mistake
  3. show more familiar hash^out instead of internal !out!hash format

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@roberth roberth requested a review from edolstra as a code owner February 26, 2026 14:11
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Feb 26, 2026
@roberth roberth added language The Nix expression language; parser, interpreter, primops, evaluation, etc cli The old and/or new command line interface labels Feb 26, 2026
@roberth

This comment was marked as resolved.

@xokdvium
Copy link
Contributor

Yeah github is dying apparently... Will kick it once it lets me

@xokdvium
Copy link
Contributor

Hm seems like a legitimate failure? https://github.com/NixOS/nix/actions/runs/22445776079/job/65005629517?pr=15349

Improve coverage ahead of changes to get-drvs.cc and related code.
Each fixture is a separate file to avoid line-number churn in error
expectations.
The error had nothing to do with content-addressed derivations; it
triggers when a supposed derivation attrset simply lacks an outPath
attribute.
forceStringNoCtx error messages leaked internal string context
representation (e.g. '!out!<hash>-name.drv'). Use DerivedPath
syntax instead: '<store-path>^out' for built, plain path for
opaque, and '<drv-path> (deep)' for deep derivation references.
@roberth
Copy link
Member Author

roberth commented Feb 26, 2026

I got the store dir wrong on vm tests. Fixed by following the established pattern.

@roberth
Copy link
Member Author

roberth commented Feb 27, 2026

It's green 🎉 merge?

@xokdvium xokdvium added this pull request to the merge queue Feb 27, 2026
Merged via the queue into NixOS:master with commit 2b5a1a9 Feb 27, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli The old and/or new command line interface language The Nix expression language; parser, interpreter, primops, evaluation, etc with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants