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

OSError: Error getting the version from source #1

Open
Aviksaikat opened this issue Jul 27, 2024 · 0 comments
Open

OSError: Error getting the version from source #1

Aviksaikat opened this issue Jul 27, 2024 · 0 comments

Comments

@Aviksaikat
Copy link
Owner

Aviksaikat commented Jul 27, 2024

Summary

Issue with the post gen hook below is the trace

OSError: Error getting the version from source `regex_commit`: file does not exist: drip-ccip-bnm/scripts/__init__.py

Solution

possible issue with the path setup

[tool.hatch.version]
source = "regex_commit"
commit_extra_args = ["-e"]
path = "<project_name>/scripts/__init__.py"

It should be

[tool.hatch.version]
source = "regex_commit"
commit_extra_args = ["-e"]
path = "scripts/__init__.py"
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