Skip to content

fix: warn and document when advanced attributes will have no impact d…#10884

Merged
roberth merged 2 commits intoNixOS:masterfrom
tomberek:tomberek.warn_structuredAttrs_advanced
Jun 24, 2024
Merged

fix: warn and document when advanced attributes will have no impact d…#10884
roberth merged 2 commits intoNixOS:masterfrom
tomberek:tomberek.warn_structuredAttrs_advanced

Conversation

@tomberek
Copy link
Contributor

@tomberek tomberek commented Jun 10, 2024

…ue to __structuredAttrs

TODO

  • Add warnings to the individual "advanced" attributes
  • Add test for the build log, and/or warn in nix derivation add

Motivation

Fix: #10856

Context

Clarify that the use of __structuredAttrs will disable the effect of top-level derivation attributes.

Priorities and Process

Add 👍 to pull requests you find important.

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

@github-actions github-actions bot added documentation with-tests Issues related to testing. PRs with tests have some priority labels Jun 10, 2024
@Ericson2314
Copy link
Member

Ericson2314 commented Jun 10, 2024

👍 This will dovetail nicely with @haenoe's work :)

@roberth roberth force-pushed the tomberek.warn_structuredAttrs_advanced branch from b0f6912 to de3fd52 Compare June 10, 2024 14:31
@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/2024-06-10-nix-team-meeting-minutes-151/46956/1

@Ericson2314 Ericson2314 marked this pull request as ready for review June 24, 2024 03:09
@Ericson2314
Copy link
Member

I think the TODOs are fine as future work, because they will be easier to do in conjunction with @haenoe's work.

@roberth roberth merged commit 6f64154 into NixOS:master Jun 24, 2024
lf- pushed a commit to lix-project/lix that referenced this pull request Aug 7, 2024
…ue to __structuredAttrs

Backport of NixOS/nix#10884.

Change-Id: I82cc2794730ae9f4a9b7df0185ed0aea83efb65a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 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.

Using __structuredAttrs ignores top-level reference checks

4 participants