pdm-project / update-deps-action

A github action to update pdm lock file
MIT License
25 stars 6 forks source link

PdmUsageError - how to set lock file stategy inherit_metadata #19

Closed commonism closed 3 months ago

commonism commented 3 months ago

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 https://github.com/pdm-project/pdm/pull/2995?

frostming commented 3 months ago

pdm lock --update-reuse -S inherit_metadata

commonism commented 3 months ago

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 commented 3 months ago

Are you using the main branch or the latest tag?

commonism commented 3 months ago

main

frostming commented 3 months ago

Fixed