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.

Improvement: Single source of version truth

See original GitHub issue

Description

Note: This ticket is purely about implementation. Currently the version numbers are determined via multiple ways depending on the config and the called method. Depending if get_current_version, get_next_version, and more, different ways to determine this version are used: based on tags, based on parsed commit messages, the version file (and maybe more?). I understand the need for this in the current implementation, but it feels a bit error prone and I think it would make the code easier and cleaner if we could come up with a single way how versions are determined / parsed / found.

I would like to open a discussion about this…

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jacksboxcommented, Apr 11, 2022

@danth jup, tags would need to always be created. I think that is a fair requirement (in the future we could think of a plugin solution to enable different and more complex version sources)…

This breaks with a feature I introduced as well -> https://github.com/relekang/python-semantic-release/pull/341, but as stated in the PR, this was for the usecase of monorepos, something this package is currently not made for and also probably should not be used for. So I would be fine with removing this features again. (the whole prerelease feature seems to be a lot more useful and for a bigger audience as well)

0reactions
bernardcooke53commented, Nov 4, 2022

This is definitely happening in #487 - it will be tags only. @nejch the Gitlab implementation in PSR is definitely lagging behind Github and Gitea - would be great to have your input!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Single Source of Truth: Benefits, Challenges, & Examples
Single source of truth (SSOT) is a philosophy for collecting data from across the enterprise and aggregating it into a central repository. As ......
Read more >
Single Source of Truth - What it is and Why You Want ... - Talend
Single source of truth (SSOT) is a concept used to ensure that everyone in an organization bases business decisions on the same data....
Read more >
What Is a Single Source of Truth (SSOT)? - Vista Projects
A single source of truth (SSOT) functions as a centralized location for all your information. Implementing a SSOT model is not simply about...
Read more >
What Is a Single Source of Truth? | Examples of SSOT | Perforce
In version control, a single source of truth (SSOT) means storing all code, configuration, and other digital assets in a way that everyone...
Read more >
Building a true Single Source of Truth (SSoT) for your team
A true SSoT is one location for all your team's knowledge. It's a place where your questions transform into answers and documents exist...
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