Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/bootspec: adopt the merged RFC-0125 #224489

Merged
merged 2 commits into from
Apr 29, 2023
Merged

nixos/bootspec: adopt the merged RFC-0125 #224489

merged 2 commits into from
Apr 29, 2023

Conversation

RaitoBezarius
Copy link
Member

Description of changes

This removes the feature preview warning, enable by default bootspec, adds a validation flag to prevent Go to go into build-time closure.

This will break all downstream users of bootspec as those changes are not backward-compatible.

It cleans up the tests.

cc @edolstra @sternenseemann (on Go at build-time and validation)

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/breaking-changes-announcement-for-unstable/17574/24

Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

Looks like this incorporates #221893, so that one should be closed I think?

Yep lol I was slightly too late.

nixos/modules/system/activation/bootspec.nix Outdated Show resolved Hide resolved
nixos/doc/manual/release-notes/rl-2305.section.md Outdated Show resolved Hide resolved
@RaitoBezarius
Copy link
Member Author

This PR will be landed once nix-community/lanzaboote#148 is landed and comments are addressed.

@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/prs-ready-for-review/3032/2090

@RaitoBezarius RaitoBezarius marked this pull request as draft April 16, 2023 20:50
@RaitoBezarius RaitoBezarius force-pushed the bootspecv1 branch 3 times, most recently from 00c9947 to 1aa9dcc Compare April 21, 2023 13:00
@RaitoBezarius RaitoBezarius marked this pull request as ready for review April 21, 2023 16:06
@RaitoBezarius
Copy link
Member Author

This PR will be landed once nix-community/lanzaboote#148 is landed and comments are addressed.

We decided to inverse the order of merge because this will take time to go into nixos-unstable-small channel. Therefore, we should aim to merge this first.

@RaitoBezarius
Copy link
Member Author

@cole-h May I ask for your final approval? Let's go. :)

@cole-h
Copy link
Member

cole-h commented Apr 29, 2023

@ofborg test bootspec

This removes the feature preview warning, enable by default bootspec,
adds a validation flag to prevent Go to go into build-time closure.

This will break all downstream users of bootspec as those changes are
not backward-compatible.
nixos/tests/bootspec.nix Outdated Show resolved Hide resolved
Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

Looks great to me. Thanks for your time and patience, I look forward to seeing the next nixos-unstable bump with this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

7 participants