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
conan lock create --update does not pull down latest version from remote if I have lesser version in cache. If I remove the package from cache it works as expected.
Start with empty cache, lock create works as expected, picking 0.1.0+44.sha.43a1bb8
Thanks for your feedback.
I think this is not a bug, but expected behavior. The --update is not an argument to update the lockfile. It is an argument for checking if the packages in the cache have more modern versions/revisions in the server. But the lockfile is actually locking. Whatever is in the lockfile will be locked, and will be resolved, irrespective of the --update argument. The argument can make sense in many scenarios, like when using --lockfile-partial because not every package is locked, or when using partial references in the lockfile, for example, locking only versions but not revisions.
The way to create a new lockfile with updated references is to do not use a previous lockfile, you can use --lockfile="" as an argument to achieve this.
You were totally right, there is a bug in the calling of the underlying API and it was not correctly processing the --update. #14643 should fix it for next 2.0.11, thanks again very much for reporting this!
Environment details
Steps to reproduce
Hi
conan lock create --update does not pull down latest version from remote if I have lesser version in cache. If I remove the package from cache it works as expected.
Start with empty cache, lock create works as expected, picking 0.1.0+44.sha.43a1bb8
If I first download 0.1.0+43.sha.43a1bb8 to cache it does not pick 0.1.0+44 as expected.
Version check returns as expected
Best regards
The text was updated successfully, but these errors were encountered: