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

"Unknown version source: vcs" using 1.7.1.dev55 #1012

Closed
kpfleming opened this issue Oct 24, 2023 · 5 comments · Fixed by #1014
Closed

"Unknown version source: vcs" using 1.7.1.dev55 #1012

kpfleming opened this issue Oct 24, 2023 · 5 comments · Fixed by #1014

Comments

@kpfleming
Copy link

Some of my projects require a not-yet-released feature in Hatch, so they install Hatch directly from the repository.

Some time in the last week, running hatch env create with this version results in an error message:

Environment `lint` is incompatible: Unknown version source: vcs

Running with verbose mode doesn't produce any additional output, so I'm finding it a bit difficult to debug the situation. For reference, here is the pyproject.toml, and I'm using Python 3.12.0.

@kpfleming
Copy link
Author

I've isolated the problem, I think. Previously hatch-vcs was being automatically installed somehow, but now it is not. Explicitly installing it along with hatch and hatch-fancy-pypi-readme allows the environment creation to proceed as planned.

@ofek
Copy link
Collaborator

ofek commented Oct 24, 2023

Try to re-raise this exception

except Exception as e:

@kpfleming
Copy link
Author

Adding a raise e there shows that the exception is:

UnknownPluginError: Unknown version source: vcs

This makes sense if hatch-vcs is not installed, but it's listed in build-system.requires and Hatch 1.70 appears to handle this just fine... maybe there's a new code path in 1.7.1dev55 which tries to obtain the project version number during env create, which did not exist in 1.70?

@ofek
Copy link
Collaborator

ofek commented Oct 24, 2023

Oh darn I was expecting a full traceback, it's okay I will debug this, thank you

@ofek
Copy link
Collaborator

ofek commented Oct 26, 2023

#1014

You caught two bugs, thank you

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

Successfully merging a pull request may close this issue.

2 participants