-
Notifications
You must be signed in to change notification settings - Fork 15
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
Use inspect
to remove the dependency on nix
fork for flake-schemas
#277
Conversation
`inspect` is used to inspect a flake output based on a schema. See: https://github.com/juspay/inspect
@srid |
It is disabled in Nix; this PR's failure is from devshell's |
@@ -5,7 +5,7 @@ use super::core::om; | |||
/// `om show` runs, and succeeds for a local flake. | |||
#[test] | |||
fn om_show_local() -> anyhow::Result<()> { | |||
om()?.arg("show").arg(".").assert().success().stdout( | |||
om()?.arg("show").arg("../..").assert().success().stdout( |
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.
Why this change?
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.
nix flake show
walks up the directory tree to find the flake, while nix eval
doesn't
not still happy about the design of the upstream module. need to revisit.
I don't know what this entails, but we can do this after this PR is merged, which I'll do now. |
resolves #261
inspect
is used to inspect a flake output based on a schema. See: https://github.com/juspay/inspectSee changes on the
juspay/inspect
fork: juspay/inspect@279cfa5Todo:
nixosConfigurations
is shown ondarwin
(This is necessary because we evaluate derivations only for the current system to avoid errors due to IFD. However, specific derivations can be skipped if they haveevalOnAllSystems = true;
in their schema, which is the case for outputs like{nixos, darwin, home}Configurations
.evalOnAllSystems
is supported in juspay/inspect@279cfa5. For more context, also see Useinspect
to remove the dependency onnix
fork for flake-schemas #277 (comment)) Done in 6303a7dSystemsListFlakeRef
tonix_rs
and use it for thesystems
input ofinspect
flake