Skip to content

Deprecate hacky way of making structured attrs#13273

Merged
Ericson2314 merged 2 commits intomasterfrom
deprecate-structured-attrs-hack
May 28, 2025
Merged

Deprecate hacky way of making structured attrs#13273
Ericson2314 merged 2 commits intomasterfrom
deprecate-structured-attrs-hack

Conversation

@Ericson2314
Copy link
Member

Motivation

The first commit adds a test for a trick with builtins.derivation that currently works today.

The second commit adds a deprecation message for that trick, and extends the test to check for the deprecation message.

Context

Thanks to @puckipedia for telling me about this, while we went over #13263.


Add 👍 to pull requests you find important.

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

@github-project-automation github-project-automation bot moved this to To triage in Nix team May 26, 2025
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label May 26, 2025
@Ericson2314 Ericson2314 force-pushed the deprecate-structured-attrs-hack branch from a4713ed to a42e1a2 Compare May 27, 2025 00:47
@Ericson2314 Ericson2314 force-pushed the deprecate-structured-attrs-hack branch from d1c86c9 to ddefbdd Compare May 28, 2025 16:02
@Ericson2314 Ericson2314 enabled auto-merge May 28, 2025 16:03
@Ericson2314 Ericson2314 force-pushed the deprecate-structured-attrs-hack branch from ddefbdd to 35d56dd Compare May 28, 2025 16:37
The method tested for in the previous commit is now deprecated.

Co-authored-by: Eelco Dolstra <[email protected]>
@Ericson2314 Ericson2314 force-pushed the deprecate-structured-attrs-hack branch from 35d56dd to 7577d2d Compare May 28, 2025 16:59
@Ericson2314 Ericson2314 merged commit 20226c8 into master May 28, 2025
25 checks passed
@Ericson2314 Ericson2314 deleted the deprecate-structured-attrs-hack branch May 28, 2025 17:40
@github-project-automation github-project-automation bot moved this from To triage to Done in Nix team May 28, 2025
@roberth roberth added the backports rejected PR should not be backported (or at least not in full, or unless an overriding need arises) label Jul 30, 2025
@@ -0,0 +1,11 @@
---
synopsis: Deprecate manually making structured attrs with `__json = ...;`
prs: [13220]
Copy link
Member

Choose a reason for hiding this comment

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

This is the wrong PR and now shows up wrong on Discourse ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backports rejected PR should not be backported (or at least not in full, or unless an overriding need arises) documentation with-tests Issues related to testing. PRs with tests have some priority

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants