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
does poetry2nix support {git = ... tag = ...} packages ? #160
Comments
|
This should be supported: Line 157 in 10e417d
Are we somehow constructing the |
|
poetry2nix looks for the ref in refs/heads/v6.3.0 when it really is in refs/tags/v6.3.0: according to the nix https://nixos.org/nix/manual/ it is possible to call builtins.fetchGit with |
|
I've just asked on #git and tags only appear in refs/tags (and eventually .git/packed-refs) so I think poetry2nix code needs to be changed (or builtins.fetchGit should check in refs/tags as well )? |
|
seems like there may be an issue with accessing the git repository itself (behing gitlab tokens https://USER:token@git.domain.net/repo.git), investigating ... |
|
Looks like builtins.fetchGit works fine after all but poetry2nix seems to always set a ref, which may override the rev ? I've switch to using revs instead of tag and that fixed that problem but then I also hit which corresponds to the poetry.lock weird that it would look in refs/heads for a rev ?! |
|
(sorry for the spam). I've played a bit with the code and this change seems to fix everything (tags and all) |
|
@adisbladis agree with the fix (aka use only rev if present and ref otherwise) ? should I send a PR or do you want to fix it yourself ? |
|
not sure what happened but now works. |
with a shell.nix similar to
I get upon running nix-shell
fatal: *can't find remote reference* refs/heads/v6.3.0(using nixos-unstable c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38)In a local checkout of the git repo, the tags are in .git/refs/tags and not in .git/refs/heads. I am not sure how git handles tags/refs but I am concerned the { git = , tag } pattern in pyproject.toml is not supported yet in poetry2nix ? or is it something else ?
the pyproject.toml contains
custom-sdk = {git = 'https://redacted/custom-sdk.git', tag = 'v6.3.0'}The text was updated successfully, but these errors were encountered: