-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
LookupError: setuptools-scm was unable to detect version (due to no git installation) #363
Comments
good find, this should check better |
would be awesome if this can be a different error when git is not installed, took me a while before I figured this one out :) |
it should be, i'm currently not in a position to make the required amount of time for setuptools_scm, this likely changes next month |
Rather than checking if git exists, I would suggest trying to execute and treating the error that results from no installed git specially (Assuming |
i think this one and #339 an collapse into a single action item the plan would be to check tool existence in the tool triggered hooks and ensure detailed errors there |
closing as duplicate of #339 |
Took me hours of trial and error until I clicked on the link to this amazing solution: installing git on the image used in the CI pipeline |
Hi,
I'm using this to provide dev versions (which is nice). I have a
.gitlab-ci.yml
configuration like so:for packaging. As it turns out, in the alpine docker images, there is no
git
(not surprising). What is a little misleading is the error message associated with the fact thatgit
doesn't exist:This is probably an easy check to catch if
git
doesn't exist before trying to use it? To fix this is a simpleapk --no-cache add git
before trying to run anything else.The text was updated successfully, but these errors were encountered: