Did something change recently to make lock files more strict? Docker build failing on macOS host #3173
-
Until today I'd been able to run But today I started getting this error:
It appears from the error that problem is a mismatch in the platform Does this mean it's no longer possible to Reading https://pdm-project.org/en/latest/usage/lock-targets/ it sounds like something has gone wrong with
But the lock file I got from running just
If I do an explicit |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
if I subsequently if I delete the lock file and
which is good, and the Docker build succeeds again I'm a bit confused how I ended up with the |
Beta Was this translation helpful? Give feedback.
-
The If the lock file doesn't contain |
Beta Was this translation helpful? Give feedback.
The
metadata.targets
introduced in lock version 4.5.0 are translated depending on whethercross_platform
strategy is present in lock version < 4.5.0.If the lock file doesn't contain
cross_platform
strategy, the lock file is a strict lock file that works on the current environment only. We just keep the same after migrating to 4.5.0, by specifying the platform and implementation in metadata.targets.