Skip to content
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 recreation of same package revision #14938

Merged

Conversation

memsharded
Copy link
Member

Changelog: Fix: Solve re-build of an existing package revision (like forcing rebuild of a an existing header-only package), while previous folder was still used by other projects.
Docs: Omit

Close #14933

@memsharded memsharded marked this pull request as ready for review October 16, 2023 09:25
Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have 1 unknown but approving nontheless

layout._base_folder = pkg_layout.base_folder # reuse existing one
# TODO: The relpath would be the same as the previous one, it shouldn't be ncessary to
# update it, the update_package_timestamp() can be simplified and path dropped
relpath = os.path.relpath(layout.base_folder, self._base_folder)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have little insight into why this is needed again given the conext of the comment above, I'll trust you on this one but maybe I just need to look deeper into this bit of code functionality

@memsharded memsharded merged commit 48656d8 into conan-io:release/2.0 Oct 17, 2023
@memsharded memsharded deleted the fix/recreate_same_package_revision branch October 17, 2023 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

conan install corrupts the cache and prevents other projects from compiling
4 participants