question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

https://github.com/pypa/pip/blob/master/pip/vcs/git.py#L94

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cjerdonekcommented, Aug 14, 2017

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.

0reactions
pradyunsgcommented, Oct 5, 2017

Hi @timabbott!

There’s no ETA for the next version of pip, it’s being tracked in the 10.0 milestone. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found