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

PdmUsageError - how to set lock file stategy inherit_metadata #19

Closed
commonism opened this issue Jul 26, 2024 · 5 comments
Closed

PdmUsageError - how to set lock file stategy inherit_metadata #19

commonism opened this issue Jul 26, 2024 · 5 comments

Comments

@commonism
Copy link

Currently this action fails with

[PdmUsageError]: Can't export a lock file without environment markers, please re-generate the lock file with `inherit_metadata` strategy.

How to set the lock strategy in the action as required by pdm-project/pdm#2995?

@frostming
Copy link
Contributor

pdm lock --update-reuse -S inherit_metadata

@commonism
Copy link
Author

Anything else to consider?

🔒 Lock successful.
/home/runner/.local/share/pdm/venv/lib/python3.10/site-packages/pdm_update_action/__init__.py:56: PDMDeprecationWarning: Project.locked_repository is deprecated, use Project.get_locked_repository() instead
  after_candidates = project.locked_repository.all_candidates
[AttributeError]: 'list' object has no attribute 'version'
WARNING: Add '-v' to see the detailed traceback
Error: Process completed with exit code 1.

@frostming
Copy link
Contributor

frostming commented Jul 26, 2024

Are you using the main branch or the latest tag?

@commonism
Copy link
Author

main

@frostming
Copy link
Contributor

Fixed

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