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 found out some conan behaviour, which may lead to some problems: conan may take package_id mode from global.conf to calculate package_id. Changing of change default_embed_mode/default_non_embed_mode/... values in global.conf may lead to fails in graph calculation.
I think it should be fixed, because I thought that calculated package_id shouldn't depends on configuration (or global.conf at least).
I know that I could set this modes in conanfile and it's what I'm gonna do in my Conanfile Extension. If you have an ability to set this attributes in conanfile, maybe usage of default_embed_mode/default_non_embed_mode/... should be marked as deprecated at least?
Ideally suggested package_id modes should be stored with conanfile during exporting
It happens because descrption of apkg in bpkg conaninfo differ from description that was created during calculation of cpkg's graph. And because of that package_ids of bpkg differ
The text was updated successfully, but these errors were encountered:
I found out some conan behaviour, which may lead to some problems: conan may take package_id mode from global.conf to calculate package_id. Changing of change default_embed_mode/default_non_embed_mode/... values in global.conf may lead to fails in graph calculation.
I am afraid this is exactly how it is designed and expected to work. This global conf affects "globally" to how package_ids are computed. If you change it, the computed package_ids change, and it is necessary to build the binaries.
The recommended approach is to use these configs as a general (global) versioning and binary compatibility policy, but this is not something intended to be changed from time to time.
I think it should be fixed, because I thought that calculated package_id shouldn't depends on configuration (or global.conf at least).
This cannot be changed, this is already used by tons of users. If you don't want that behavior, it is perfectly fine not to use it. But it is working exactly as expected (and as requested by many users, this is why this configuration is there and works the way it works).
Describe the bug
Conan version: 2.12
Hi!
I found out some conan behaviour, which may lead to some problems: conan may take package_id mode from global.conf to calculate package_id. Changing of change
default_embed_mode
/default_non_embed_mode
/... values in global.conf may lead to fails in graph calculation.I think it should be fixed, because I thought that calculated package_id shouldn't depends on configuration (or global.conf at least).
I know that I could set this modes in conanfile and it's what I'm gonna do in my Conanfile Extension. If you have an ability to set this attributes in conanfile, maybe usage of
default_embed_mode
/default_non_embed_mode/...
should be marked as deprecated at least?Ideally suggested package_id modes should be stored with conanfile during exporting
What do you think about that?
How to reproduce it
Example:
It happens because descrption of
apkg
inbpkg
conaninfo differ from description that was created during calculation ofcpkg
's graph. And because of that package_ids ofbpkg
differThe text was updated successfully, but these errors were encountered: