When installing from git and refering to a commit hash, pip tries to find branch or tag of a name equal to the hash string.
See original GitHub issue- Pip version: 9.0.1
- Python version: python3.6
- Operating system: Ubuntu 16.10
Description:
When pip installs a package using a specific git commit, a warning appears which suggests that pip tries to first find a branch or a tag which are equal to the hash string.
The expected behaviour would be to first try a commit hash and only then search for a branch or a tag equal to the provided string. Alternatively, three additional notations will be added to refer only to commit hashes, notation for branches and notation for tags, replacing the old too general notation.
What I’ve run:
$ pipsi install git+https://github.com/kennethreitz/em.git@6db2302d4ee903dc2c68bced7f41f5a590b96f7f
[…]
Could not find a tag or branch '6db2302d4ee903dc2c68bced7f41f5a590b96f7f', assuming commit.
[…]
It comes from the following line:
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Install specific git commit with pip
You can specify commit hash, branch name, tag. For the branch name and the tag, you can also install a compressed distribution.
Read more >Git - git-tag Documentation
Tag objects (created with -a , -s , or -u ) are called "annotated" tags; they contain a creation date, the tagger name...
Read more >API Reference — GitPython 3.1.29 documentation
repo – repository this object is located in; binsha – 20 byte SHA1; object – Object instance of object we are pointing to;...
Read more >poetry-dynamic-versioning 0.21.2
tag -branch (string, default: unset): Branch on which to find tags, if different than the current branch. This is only used for Git...
Read more >dbt Guide - GitLab
You open up your terminal and code editor, create a new branch, make an adjustment to a dbt model, and save your changes....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI, I just posted PR #4674 (WIP) to address this issue. Note, however, that I’m probably going to break it into smaller PR’s since it simplifies / fixes some other issues I noticed in the course of working on it.
Hi @timabbott!
There’s no ETA for the next version of pip, it’s being tracked in the 10.0 milestone. 😃