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 when fetching tag and unspecified branch #199

Closed
wants to merge 1 commit into from

Conversation

teto
Copy link

@teto teto commented Oct 28, 2020

follow up of #167 . Explanation at #197 . I would like to update the tests but not sure what's best.

@teto
Copy link
Author

teto commented Oct 28, 2020

It doesn't seem it's possible in poetry to specify both a rev and a ref ? for htis reason I can't fetch some specific revisions that are not on the default branch.

EDIT: no it works I was just using wrong nomenclature, branch and rev together work fine.

if isGit then
(
builtins.fetchGit {
builtins.fetchGit (lib.debug.traceValSeq ({
Copy link
Member

Choose a reason for hiding this comment

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

This should be not left it no, no?

Copy link
Author

Choose a reason for hiding this comment

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

yes it should go away :) I am not sure this whole PR is a definitive fix nor how to operate/update the tests so I dont intend to complete this as of now. Anyone feel free to pick it up.

@teto
Copy link
Author

teto commented Dec 9, 2020

I think I have my final solution, if and only if there is a branch or tag add { ref = REF } (with REF=refs/tags/TAG if a tag) and nothing otherwise (I tried to pass ref=null instead of ref="HEAD": but nix doesnt like it).
I would like to see a fix merged but I don't trust much the test infra at the moment, should I ?

@teto teto changed the title fix fix when fetching tag and unspecified branch Dec 12, 2020
@adisbladis
Copy link
Member

I think I have my final solution, if and only if there is a branch or tag add { ref = REF } (with REF=refs/tags/TAG if a tag) and nothing otherwise (I tried to pass ref=null instead of ref="HEAD": but nix doesnt like it).

This has now been merged on master in #240

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.

3 participants