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

Silently ignores invalid PDM_BUILD_SCM_VERSION env var #268

Open
1 task
sanmai-NL opened this issue Nov 14, 2024 · 1 comment
Open
1 task

Silently ignores invalid PDM_BUILD_SCM_VERSION env var #268

sanmai-NL opened this issue Nov 14, 2024 · 1 comment

Comments

@sanmai-NL
Copy link
Contributor

Describe the bug

Due to a defect in my pipeline, my PDM_BUILD_SCM_VERSION ended up empty/whitespace-only. PDM silently ignored this and invented a 0.1.dev255+g4834191 version.

To reproduce

See https://gitlab.com/han-aim/aimtools/-/jobs/8354095698

Expected Behavior

Whenever PDM_BUILD_SCM_VERSION is invalid, raise a fault.

Environment Information

Rerunning the pipeline with this info is not practical in my circumstances, but most of this info can be gleaned from the pipeline log I provided. I use v2.20.1.

pdm -v output

See previous question. In brief, v2.20.1.

Additional Context

No response

Are you willing to submit a PR to fix this bug?

  • Yes, I would like to submit a PR.
@frostming frostming transferred this issue from pdm-project/pdm Nov 14, 2024
@frostming
Copy link
Contributor

Moved to the correct repo.

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

2 participants