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

fix(pkg/narinfo): Treat unknown-deriver as no deriver #128

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

kalbasit
Copy link
Contributor

@kalbasit kalbasit commented Jan 1, 2025

Some cache servers return Deriver: unknown-deriver which breaks verification of a narinfo. Treat such deriver as if no deriver was given at all.

ref kalbasit/ncps#171

Some cache servers return `Deriver: unknown-deriver` which breaks
verification of a narinfo. Treat such deriver as if no deriver was given
at all.
@flokli
Copy link
Collaborator

flokli commented Jan 1, 2025

Is this a cachix thing, or does nix/hydra also upload NARInfo like this?

@flokli
Copy link
Collaborator

flokli commented Jan 1, 2025

Apparently it's a Nix thing - see NixOS/nix@c60715e.

Thanks for fixing this, and also for adding a test!

@flokli flokli merged commit 4bdde67 into nix-community:main Jan 1, 2025
8 checks passed
@flokli
Copy link
Collaborator

flokli commented Jan 1, 2025

https://cl.tvl.fyi/c/depot/+/12940 applies the same change to nix-compat too.

tvlbot pushed a commit to tvlfyi/tvix that referenced this pull request Jan 1, 2025
According to NixOS/nix@c60715e,
these were produced by a legacy tool and should be considered as if
Deriver was not passed at all.

See: kalbasit/ncps#171
Reported-In: nix-community/go-nix#128
Change-Id: If285a11c3275cb3c857c68782bd13473c46f04bf
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12940
Reviewed-by: edef <[email protected]>
Autosubmit: flokli <[email protected]>
Tested-by: BuildkiteCI
@kalbasit kalbasit deleted the handle-unknown-deriver branch January 1, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants