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.

The version number will be confused when use `--prerelease` option

See original GitHub issue

The problem

The version number will be confused when use --prerelease option: image

Expected behavior

The version number is incremented in the normal way.

Additional context

When I execute this command many times, there is a problem with the version number, the log as follows:

(venv) pydemo % semantic-release version  --prerelease 
Creating new version
Current version: 0.3.5
Bumping with a None version to 0.3.5-beta.3
(venv) pydemo % semantic-release version  --prerelease
Creating new version
Current version: 0.3.6
Bumping with a None version to 0.3.6-beta.4
(venv) pydemo % semantic-release version  --prerelease
Creating new version
Current version: 0.3.5
Bumping with a None version to 0.3.5-beta.5
(venv) pydemo % semantic-release version  --prerelease
Creating new version
Current version: 0.3.6
Bumping with a None version to 0.3.6-beta.6

semantic_release config in pyproject.toml:

[tool.semantic_release]
version_toml = "pyproject.toml:tool.poetry.version"

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jacksboxcommented, Apr 11, 2022

@FlorentGodin I made an error when implementing - a new fixed version is already in progress

0reactions
github-actions[bot]commented, Nov 13, 2022

This bug report has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resetting of pre-release and build versions... #60 - GitHub
According to the Specification, patch version must be reset to 0 when minor version is incremented and both patch and minor versions must...
Read more >
Pre-release versions are not matched by pip when using the
The pip --pre option directs pip to include potential matching pre-release and development versions, but it does not change the semantics of ...
Read more >
Software versioning - Wikipedia
Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software.
Read more >
Best Practices When Versioning a Release | Cloudbees Blog
The simplest thing to do is start your initial development release at 0.1.0 and then increment the minor version for each subsequent release....
Read more >
What's the difference between Alpha, Beta, Pre-release, and ...
Release: Pre-purchase discounting ends. The final product is released to the general public and new licenses are distributed to everyone who pre-purchased the ......
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