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

New revision_mode = scm_folder for monorepos #13562

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Mar 29, 2023

Changelog: Feature: New revision_mode = "scm_folder" for mono-repo projects that want to use scm revisions.
Docs: conan-io/docs#3218

This is a preliminary experiment to discuss about conan-io/docs#3135

The revision_mode = "scm" doesn't work in mono-repo because it takes the root folder commit.
The current PR approach is broken, as it will take the folder commit when the conanfile.py is inside a subfolder (this layout is allowed)

@memsharded memsharded changed the title changing revision_mode=scm base folder New revision_mode = scm_folder for monorepos Apr 26, 2023
@memsharded memsharded marked this pull request as ready for review April 26, 2023 18:44
@@ -796,35 +796,6 @@ def test_upload_no_overwrite_packages(self):
pref2.revision)


class SCMRevisions(unittest.TestCase):
Copy link
Member Author

Choose a reason for hiding this comment

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

These tests were redundant, consolidated them in the above tests

@memsharded memsharded merged commit e33561a into conan-io:release/2.0 May 4, 2023
@memsharded memsharded deleted the experiment/revision_mode_scm_subfolder branch May 4, 2023 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants