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 editable with matching paths folders #14095

Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Jun 15, 2023

Changelog: Bugfix: Avoid incorrect path replacements for editable packages when folders have overlapping matching names.
Docs: Omit

Close #14091

hello_say_folder = os.path.join(client.current_folder, "hello-say").replace("\\", "/")
assert f'set(say_PACKAGE_FOLDER_RELEASE "{hello_say_folder}")' in data
env = client.load("hello/conanbuildenv-release.sh")
assert "$script_folder/deactivate_conanbuildenv-release.sh" in env.replace("\\", "/")
Copy link
Member

Choose a reason for hiding this comment

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

With my planned PR for these scripts to disappear, this tests would fail. Is there another file you can check for?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really, better check it as my change was breaking this.
It is fine, when you introduce your change, a few tests will have to be fixed anyway, this will be just one more.

@memsharded memsharded merged commit e8d994f into conan-io:release/2.0 Jun 15, 2023
@memsharded memsharded deleted the fix/editable_matching_paths branch June 15, 2023 21:25
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.

[bug] conan editable not working if working directory of editable package matches consumer directory
3 participants