-
Notifications
You must be signed in to change notification settings - Fork 988
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
fix back migration of default compatibility.py #16405
fix back migration of default compatibility.py #16405
Conversation
I don't think this is working as expected. We started seeing the error below in cases where we do some things with Conan 2.4.0, then switch to 2.2.1 and do some more things (the error is from the part after downgrading the conan cache from 2.4.0 to 2.2.1):
|
That is indeed unexpected, thanks for reporting. Could you please try to reproduce and share the traces after the downgrade? Conan should show information about the back-migration. Any detail about We have tested down to Conan 2.0.17 and it seemed to work, I don't think the specific 2.2.1 version should be related. |
I'm unlikely to be able to share traces due to confidentiality reasons, and no access to the CI system where these were seen. The project involved also had to put in a hot fix to block updating to 2.4.0, so I can't re-run it either. The scenario was a CI job that used tox to create controlled environments and switch between them. I don't recall the exact order of things, but the last two steps were running in a tox environment with conan 2.4.0, then the last step in a tox environment with conan 2.2.1. It's possible that one or both used custom locations for the local conan cache. I think the conan commands were just the usual |
Thanks for the feedback @craigscott-crascit Yes, we have identified the possible issue: The back-migrations were designed as activated when there was a forward migration first, but not unconditionally. So mostly installing a fresh 2.4 in a new machine and downgrading it to 2.3 later was not possible, it was only enabled for users that first upgraded from 2.3 or lower to 2.4, and then decided to downgrade. The PR #16417 is doing that, activating the back migrations uncondtionally. It is planned for next patch release 2.4.1, most likely next Monday or Tuesday. Thanks very much again for the report, and sorry for the inconvenience. |
Changelog: Fix: Implement a back migration to <2.3 for default
compatibility.py
plugin.Docs: Omit