Skip to content

Emit warnings for IFDs with new trace-import-from-derivation option#13279

Merged
Mic92 merged 2 commits intoNixOS:masterfrom
DeterminateSystems:gustavderdrache/trace-import-from-derivation
May 27, 2025
Merged

Emit warnings for IFDs with new trace-import-from-derivation option#13279
Mic92 merged 2 commits intoNixOS:masterfrom
DeterminateSystems:gustavderdrache/trace-import-from-derivation

Conversation

@gustavderdrache
Copy link
Contributor

Motivation

While we have the allow-import-from-derivation option to deny IFDs, sometimes users would like to observe IFDs during CI processes to gradually phase the idiom out. This PR adds a trace-import-from-derivation option that, when set, logs a simple warning to the console.

Since this is intended for consumption by both humans and CI systems that can read logs, a test is included to ensure the warning message does not change accidentally.


Add 👍 to pull requests you find important.

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

gustavderdrache and others added 2 commits May 27, 2025 09:18
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label May 27, 2025
@Mic92 Mic92 merged commit 161bf86 into NixOS:master May 27, 2025
12 checks passed
@gustavderdrache gustavderdrache deleted the gustavderdrache/trace-import-from-derivation branch May 27, 2025 14:58
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nix-2-30-0-released/66449/1

};

Setting<bool> traceImportFromDerivation{
this, false, "trace-import-from-derivation",
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be warn-import-from-derivation to conform with the other warning options.

@roberth roberth added the backports ignored Seen but not applied label Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backports ignored Seen but not applied 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.

4 participants