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
The graph lock inside the conan.lock file (that is generated in the install_folder when you issue a conan install command) can be used to have reproducible builds for a project's dependencies. It follows, that one would want this file committed to source control.
The root node in the graph lock always refers to the conanfile.txt in the path node attribute. This path is always an absolute path to that file. This could differ between developers' setups (because they often store source repositories on different paths).
Though a wrong path in the lock file will not disturb an install command, it is possible that conan will overwrite this attribute, causing unnecessary/unwarranted diffs.
This was the behavior I've observed with 1.23.0, our project hasn't yet updated.
I propose that conan allow the graph lock root node's path to be a relative path from the lock file's location. This is most likely going to be the same among development setups, and no unwanted diffs are created. I don't mind if this feature would be opt-in via command line option to maintain backwards compatibility.
Please keep tuned to the 1.28 release, many things are going to change in lockfiles. It will also be possible to lock the versions only (not the full lock with the binary package-ids and the profiles), which might be something useful if you plan to add it to version control (instead of having to commit every lockfile for every configuration), depending on what you want to use.
The graph lock inside the
conan.lock
file (that is generated in theinstall_folder
when you issue aconan install
command) can be used to have reproducible builds for a project's dependencies. It follows, that one would want this file committed to source control.The root node in the graph lock always refers to the
conanfile.txt
in thepath
node attribute. This path is always an absolute path to that file. This could differ between developers' setups (because they often store source repositories on different paths).Though a wrong path in the lock file will not disturb an install command, it is possible that conan will overwrite this attribute, causing unnecessary/unwarranted diffs.
This was the behavior I've observed with 1.23.0, our project hasn't yet updated.
I propose that conan allow the graph lock root node's path to be a relative path from the lock file's location. This is most likely going to be the same among development setups, and no unwanted diffs are created. I don't mind if this feature would be opt-in via command line option to maintain backwards compatibility.
The text was updated successfully, but these errors were encountered: