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.

git versioning tags not explained

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

Can somebody explain the difference between:

uberdbutils (0.0.22 git branch master)

and

uberdbutils (0.0.22 git rev master)

Especially as it produces a conflict that makes it impossible to upgrade a package:

Because uber-schema (2.1.1) depends on uberdbutils (0.0.22 git rev master) and no versions of uber-schema match >2.1.1,<3.0.0, uber-schema (>=2.1.1,<3.0.0) requires uberdbutils (0.0.22 git rev master). So, because grants-pipeline depends on both uberdbutils (0.0.22 git branch master) and uber-schema (^2.1.1), version solving failed. The package blocks for uberdbutils btw in poetry.lock in grants-pipeline & uber-schema are exactly the same.

So this is driving my crazy, uberdbutils is referenced by uber-schema & grants-pipeline in pyproject.toml & poetry.lock exactly the same, but poetry calls it 0.0.22 git rev master here and 0.0.22 git branch master there???

(And no, there have been no commits to uberdbutils has not been updated in 18 months.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
rambocommented, Nov 23, 2020

After some more investigation it seems it makes all the difference if we point to the dep with {git = "git@gitlab.com:orgname/reponame.git", tag="0.3.2"} or {git = "ssh://git@gitlab.com/orgname/reponame.git", tag="0.3.2"}, mixing forms will cause this issue, using the first from everywhere will prevent it and I have not tested using the second form everywhere since I would have to update to other packages too for that.

0reactions
yacc143commented, Nov 26, 2020

Btw, please note, poetry had no problem to find the initial version of the packages involved, it just refuses to upgrade them because of the common git repo dependency. Weep.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git - Tagging - Git SCM
Git supports two types of tags: lightweight and annotated. A lightweight tag is very much like a branch that doesn't change — it's...
Read more >
Git Tagging Explained - Initial Commit
The git tag command is a tool used with the Git version control system to name your commits in a friendly and easy...
Read more >
git tag | Atlassian Git Tutorial
Git tag command is the primary driver of tag: creation, modification and deletion. Learn how you can use them to organize code and...
Read more >
For version as git tag: use annotated tag, not 'v' prefix
Tagging commit with meaningful version number like major.minor.patch (see Semantic Versioning 2.0.0 |... Tagged with git.
Read more >
Semantic versioning with Git tags - Travis Horn
A common place to record version numbers is in Git tags. You tag a version after committing the changes. Here are the basic...
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