-
Notifications
You must be signed in to change notification settings - Fork 204
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
[nix profile] Changes to support format changes from nix 2.20 #1770
Conversation
Current dependencies on/for this PR: This stack of pull requests is managed by Graphite. |
3d8613f
to
7674d3d
Compare
6eea75d
to
bad3e85
Compare
bad3e85
to
c5092c5
Compare
index: 2, | ||
unlockedReference: "github:NixOS/nixpkgs/52e3e80afff4b16ccb7c52e9f0f5220552f03d04#legacyPackages.x86_64-darwin.python39Packages.numpy", | ||
lockedReference: "github:NixOS/nixpkgs/52e3e80afff4b16ccb7c52e9f0f5220552f03d04#legacyPackages.x86_64-darwin.python39Packages.numpy", | ||
nixStorePaths: []string{"/nix/store/qly36iy1p4q1h5p4rcbvsn3ll0zsd9pd-python3.9-numpy-1.23.3"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should add a test-case with name:
field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, this test is for legacy nix profile list
parsing. Not the modern --json output. Renamed to clarify.
upgrade devbox cli test to use version 0.9.1, which addresses a nix output change in version 2.20. Corresponding Devbox PR jetify-com/devbox#1770
Summary
The latest nix version (2.20) changed how the nix profile output is represented:
From the release notes:
and for
nix search
:TODOs:
nix.readManifest
to handle the new formatnix search
requires a regex to be passedFixes #1767
How was it tested?
CICD should pass
Installed nix 2.20.1 locally and am using Devbox with it to add, remove packages and run scripts and shell.
verified flake updating works:
examples/flakes/remote
. Diddevbox shell
, dropped thev0.43.1
from process-compose flake, diddevbox update
, and verified thatprocess-compose
now had the latest version (IIRC0.80+
)examples/flakes/php
. Diddevbox shell
, edited the flake to dropds
and diddevbox update
. Verified nods
inphp -m | grep ds