Skip to content

[Backport release-23.05] dtc: fix overrides: use finalAttrs, not rec#237207

Merged
wegank merged 1 commit intorelease-23.05from
backport-237102-to-release-23.05
Jun 12, 2023
Merged

[Backport release-23.05] dtc: fix overrides: use finalAttrs, not rec#237207
wegank merged 1 commit intorelease-23.05from
backport-237102-to-release-23.05

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Bot-based backport to release-23.05, triggered by a label in #237102.

  • Before merging, ensure that this backport complies with the Criteria for Backporting.
    • Even as a non-commiter, if you find that it does not comply, leave a comment.

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.

(cherry picked from commit bb6069e)
@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 11, 2023
@wegank wegank merged commit cdd5aaa into release-23.05 Jun 12, 2023
@wegank wegank deleted the backport-237102-to-release-23.05 branch June 12, 2023 22:10
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.

1 participant