Skip to content

dtc: fix overrides: use finalAttrs, not rec#237102

Merged
thiagokokada merged 1 commit intomasterfrom
unknown repository
Jun 11, 2023
Merged

dtc: fix overrides: use finalAttrs, not rec#237102
thiagokokada merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jun 10, 2023

Description of changes

Prior to this commit, dtc was accessing its own derivation attributes via rec. This means that

overrideAttrs (_: { doCheck = ..; })

will produce inconsistent behavior, with part of the derivation seeing the old value and part seeing the new value.

finalAttrs is the preferred way to do this. Let's switch to that.

Things done

Prior to this commit, dtc was accessing its own derivation
attributes via `rec`.  This means that

```
overrideAttrs (_: { doCheck = ..; })
```

will produce inconsistent behavior, with part of the derivation
seeing the old value and part seeing the new value.

finalAttrs is the preferred way to do this.  Let's switch to that.
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jun 10, 2023
@github-actions
Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-23.05:

@ghost ghost deleted the pr/dtc/fix-overrides branch June 12, 2023 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants