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

moving code from cli to conan_api #17575

Draft
wants to merge 3 commits into
base: develop2
Choose a base branch
from

Conversation

memsharded
Copy link
Member

Changelog: Omit
Docs: Omit

Refactor, moving code from cli that were accessing from conans or from conan.internal to using public API.

@memsharded memsharded added this to the 2.12.0 milestone Jan 14, 2025
*******************************************************************
private '{}'
detected in user code (custom commands, extensions, recipes, etc).
Stop using it, use only public documented APIs.
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to warn/scare users saying that we will break this usage in the future?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean it is not scary enough? 😅

I can explicit that it will break, sure.

Comment on lines +4 to +10
_msg = """
*******************************************************************
private '{}'
detected in user code (custom commands, extensions, recipes, etc).
Stop using it, use only public documented APIs.
*******************************************************************
"""
Copy link
Contributor

@czoido czoido Jan 16, 2025

Choose a reason for hiding this comment

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

Minor thing but I think we may add a please there (and for all the others)

Suggested change
_msg = """
*******************************************************************
private '{}'
detected in user code (custom commands, extensions, recipes, etc).
Stop using it, use only public documented APIs.
*******************************************************************
"""
_msg = """
*******************************************************************
Private '{}' detected in user code (custom commands, extensions, recipes, etc).
Please stop using it and use only public, documented APIs.
*******************************************************************
"""

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.

3 participants