Skip to content

Conversation

rawkode
Copy link
Member

@rawkode rawkode commented Aug 7, 2025

The --strict flag was deprecated in CUE 0.14.0 and causes NixOS builds to fail with: '--strict is deprecated; use "jsonschema+strict:" as shown in "cue help filetypes"'

Since strict validation is now the default behavior in CUE, we can safely remove this flag without changing functionality.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

The --strict flag was deprecated in CUE 0.14.0 and causes NixOS builds
to fail with: '--strict is deprecated; use "jsonschema+strict:" as
shown in "cue help filetypes"'

Since strict validation is now the default behavior in CUE, we can
safely remove this flag without changing functionality.
@rawkode rawkode requested a review from RaitoBezarius August 7, 2025 18:24
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Aug 7, 2025
This was referenced Aug 8, 2025
Copy link
Contributor

@eclairevoyant eclairevoyant left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this! I've created #431906 to prevent similar issues from making it to nixos-unstable in the future.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 8, 2025
@eclairevoyant
Copy link
Contributor

@aaronjheng for review (not sure why CI didn't ping here)

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Aug 13, 2025
@rawkode
Copy link
Member Author

rawkode commented Aug 26, 2025

Is something blocking this?

@eclairevoyant
Copy link
Contributor

yes, it's pending a committer noticing and clicking the merge button

Copy link
Contributor

@aviallon aviallon left a comment

Choose a reason for hiding this comment

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

Fixed my build, thanks!

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 3+ This PR was reviewed and approved by three or more persons. and removed 12.approvals: 2 This PR was reviewed and approved by two persons. labels Sep 4, 2025
@eclairevoyant
Copy link
Contributor

@ElvishJerricco do you or another committer have a chance to review?

@Aleksanaa Aleksanaa merged commit c6f4b92 into NixOS:master Sep 4, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 3+ This PR was reviewed and approved by three or more persons.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants