-
-
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
Cannot get vcs source in github PR event trigger #1098
Comments
off hand its uncear why its not seeing the details can you add with pretend version set it should not even look at the scm |
Thanks for replying! The task that fails is when it builds my docker image with pixi:
And in my pixi.toml i have: Which has the following pyproject.toml:
I m not sure what additional information I can provide. |
Then you need to make the build tool verbose as well Without the extra logs there's nothing i can do |
I couldnt get any additional logs, even by setting buildx debug and progress=plain, but it looks like adding ENV SETUPTOOLS_SCM_PRETEND_VERSION=1.0.0 in the dockerfile directly fixed it. |
I cannot manage to build my docker image during a PR event trigger.
I am using this trigger:
With this docker build action that tries to install a package:
The package has this pyproject.toml:
Here is the error:
Is it because it tries to fetch a PR instead of a tag?
UserWarning: tag 'refs/pull/2096/merge' no version found
I tried using checkout with fetch-depth:0, setting SETUPTOOLS_SCM_PRETEND_VERSION and fallback without success.
The docker build works well when using a workflow_dispatch or merge to main event, but I cant get it to work during a PR event based on a label.
Thanks for your help!
The text was updated successfully, but these errors were encountered: