Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Fail gracefully if there are no (valid) commits #10

Open
igordertigor opened this issue Jul 31, 2023 · 0 comments
Open

Fix: Fail gracefully if there are no (valid) commits #10

igordertigor opened this issue Jul 31, 2023 · 0 comments

Comments

@igordertigor
Copy link
Owner

This error occurs if there are no valid commits since the last tag:

Traceback (most recent call last):
   File "/home/ingo/code/semv/.tox/cram/bin/semv", line 8, in <module>
     sys.exit(main())
   File "/home/ingo/code/semv/.tox/cram/lib/python3.8/site-packages/semv/main.py", line 8, in main
     print(commands.version_string(), end='')
   File "/home/ingo/code/semv/.tox/cram/lib/python3.8/site-packages/semv/commands.py", line 36, in version_string
     inc = vi.get_version_increment(commits)
   File "/home/ingo/code/semv/.tox/cram/lib/python3.8/site-packages/semv/increment.py", line 30, in get_version_increment
     return min(
 ValueError: min() arg is an empty sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant