haskell-modules: Add revision argument to callHackageDirect - #284490
Merged
maralorn merged 1 commit intoFeb 26, 2024
Conversation
wolfgangwalther
requested review from
cdepillabout,
maralorn,
ncfavier and
sternenseemann
as code owners
January 28, 2024 11:11
wolfgangwalther
commented
Jan 28, 2024
maralorn
approved these changes
Jan 28, 2024
maralorn
left a comment
Member
There was a problem hiding this comment.
This change makes sense to me.
Luckily for you, those functions are still undocumented in the nixpkgs manual so we can’t force you to update that …
Contributor
Author
Tbh, I did grep the docs to update them, only to see that they are in fact not documented, yet, ... at which point I stopped ;) |
Previously, callHackageDirect was only able to fetch the first revision of a package. Resolves NixOS#134747
wolfgangwalther
force-pushed
the
hackage-direct-revision
branch
from
February 11, 2024 18:03
625e2d0 to
7474241
Compare
Contributor
Author
|
@maralorn is there anything that this is still blocked on or can this be merged? |
Member
|
Nope, thank you! And thank you for posting an easy test in the description. Very helpful. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, callHackageDirect was only able to fetch the first revision of a package.
Resolves #134747
Description of changes
Tested with a random package which needs a revision. Fails without revision argument:
Succeeds with revision argument:
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.