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 inspect with set_name() set_version() #6214

Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Dec 11, 2019

Changelog: Bugfix: conan inspect now is able to properly show name and version coming from set_name() and set_version() methods.
Docs: Omit

Close #6213

czoido
czoido approved these changes Dec 12, 2019
@memsharded memsharded merged commit a8f4283 into conan-io:develop Dec 12, 2019
2 checks passed
@memsharded memsharded deleted the feature/fix_inspect_set_name_version branch Dec 12, 2019
@@ -263,7 +263,7 @@ def inspect(self, path, attributes, remote_name=None):
ref = ConanFileReference.loads(path)
except ConanException:
conanfile_path = _get_conanfile_path(path, get_cwd(), py=True)
conanfile = self.app.loader.load_basic(conanfile_path)
conanfile = self.app.loader.load_named(conanfile_path, None, None, None, None)
Copy link
Member

@uilianries uilianries Feb 4, 2020

Choose a reason for hiding this comment

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

I was looking for this solution for CPT, thanks @memsharded ! 👍

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