-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
$ pipenv update <git dep> broken #1611
Comments
Update: I tested in several versions of pipenv; this breakage happens in every version I tried back through 10.1.0. I was unable to test version 10.0.0, because I couldn't find a way to do an update in that version. The Version 9.1.0 worked as I reported above. |
@randycoulman I believe this has to do with how we handle If you |
@techalchemy No, it doesn't quite work. First:
I tried adding a
Somewhere along the way a It seems like I shouldn't have to re-specify the repo location for the dependency once it's in my |
Can you give me an example I can reproduce myself? |
@kennethreitz My original report has "steps to reproduce" using a public repo on GitHub that you should be able to follow. Unless you're asking about the latter report where a |
ah, i see now, thanks! |
'update' is not to be used with git projects, basically. |
i think there's a legitimate bug here, but it'd be really hard to fix |
@randycoulman the ref gets added to the lockfile because essentially it has to, that's the only way to pin a git repository as far as I know (a reproducible lockfile needs a ref to pin a git repo)... update should just update the ref ideally, we are just constructing the urls incorrectly somehow |
@techalchemy I think it requires a two-step process. First, clone the repo, then checkout the ref. From the error messages, it looks like we're trying to do it all in one step. |
fixed :) |
This doesn't give an error message anymore but I'm not sure it actually upgrades the package. I think it might reinstall the same version just uninstalled. I'm not sure how to make a shareable example here, but I just tried it a few times and got this behavior: |
We have another issue opened on this. It doesn’t update anything yet |
(Fix will land in |
@techalchemy Linking so interested folks can track: This one, right? #1690 |
@apnewberry that’s the one, thanks |
With pipenv 11.1.5, trying to update a git dependency is failing with the following error:
The dependency in my
Pipfile
looks like this:and was initially created by
pipenv install -e git+git@git-host:hats#egg=hats
.pipenv update hats
fails with the same error.pipenv lock
andpipenv install
both work fine.I'm pretty sure I remember this working in pipenv 9.1.0; I'm not sure when it broke between then and 11.1.5.
Describe your environment
Expected result
The
hats
dependency should have be successfully updated to the latest version in the git repository.Actual result
See error above.
Steps to replicate
Because my test case is a private package in a private repo, I've recreated the bug using a public package/repo:
The text was updated successfully, but these errors were encountered: