You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker and believe that this is not a duplicate.
Steps to reproduce
I'm working on a package that that has a self-referential pattern for its own optional dependencies; as described for foo[socks,jwt] here: https://pdm.fming.dev/latest/usage/dependency/#add-dependencies. I ran pdm lock to generate a lockfile. I then changed the description and ran pdm lock again.
The exact config is:
[project.optional-dependencies]
a = ["some-pkg==1.2.3"]
b = [
"another-package=1.2.3.4",
]
ci = ["gsutil>=4.66", "pkg[a,b]"]
Actual behavior
After changing the description, the base case foo uses the old summary but the target foo[socks,jwt] uses the new summary.
Both package references use the same summary. Deleting ~/.cache/pdm/metadata/package_meta_NNNNN.json and running pdm lock again solves the issue, making both references use new summary.
tgolsson
changed the title
Cached version of local package used when using pdm lock
Cached version of current project used when using pdm lockOct 17, 2022
No; and I think that may have been part of the problem. pkg is the local package described in the pyproject.toml. It unfortunately collides with a package on pypi, and when later working with pdm update it failed because of this - so it might have silently affected other packages too.
Steps to reproduce
I'm working on a package that that has a self-referential pattern for its own optional dependencies; as described for
foo[socks,jwt]
here: https://pdm.fming.dev/latest/usage/dependency/#add-dependencies. I ranpdm lock
to generate a lockfile. I then changed the description and ranpdm lock
again.The exact config is:
Actual behavior
After changing the description, the base case
foo
uses the old summary but the targetfoo[socks,jwt]
uses the new summary.Like this:
Expected behavior
Both package references use the same summary. Deleting
~/.cache/pdm/metadata/package_meta_NNNNN.json
and runningpdm lock
again solves the issue, making both references usenew summary
.Environment Information
The text was updated successfully, but these errors were encountered: