Navigation Menu

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 remotes not loaded for conan alias command #8704

Merged
merged 2 commits into from Mar 26, 2021

Conversation

kralicky
Copy link
Contributor

@kralicky kralicky commented Mar 25, 2021

Changelog: Fix: remotes not being loaded for the conan alias command, which was preventing conan alias from working if python_requires is used.
Docs: Omit

Fixes #8702
Fix remotes not being loaded for the conan alias command, which was preventing conan alias from working if python_requires is used. causing a stack trace to be printed instead of the actual error message

  • Refer to the issue that supports this Pull Request.
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Thanks @cobalt77 for contributing this!

Could you please try to add a test that checks this is working? It will help to keep it working in the future and not break it. The ConanAliasTest in command/alias_test.py would be a good place. Please let me know if you need help with it.

@kralicky
Copy link
Contributor Author

kralicky commented Mar 25, 2021

All set - note that the issue was slightly different than I originally thought but the fix is the same. I updated #8702 with details.

@memsharded memsharded added this to the 1.35 milestone Mar 26, 2021
@memsharded memsharded merged commit 0ad4f30 into conan-io:develop Mar 26, 2021
@kralicky kralicky deleted the fix-alias-python-requires branch March 26, 2021 00:58
memsharded added a commit that referenced this pull request Mar 27, 2021
* Added existing tests to CMakeDeps and fixed some things about it (#8697)

* Added existing tests to CMakeDeps and fixed some things about it

* Review and fixed name of data file

* Removed wrong comment and fixed test by declaring filenames only for CMakeDeps

* new makefile_gen (#8705)

* new makefile_gen

* pytest mark reason

* Fix remotes not loaded for conan alias command (#8704)

* Fix remotes not loaded for alias command

* Add test

* adding diamond visits and avoid repetitions (#8701)

* Start using ConanFileDependencies in msbuilddeps  (#8706)

* start using ConanFileDependencies in MSBuildDeps generator

* full usage of ConanFileDependencies

* fix intel imports

* More fine-grained control (using [conf]) for build parallelization (#8665)

* first shot

* format the strings

* package_id change due to msbuild property name change

* do not fallback to cpu_count

* remove parallel from constructor

* remove change not needed

* add unittesting

* check once for parallel

* Update conans/test/unittests/tools/microsoft/test_msbuild.py

Co-authored-by: James <james@conan.io>

Co-authored-by: James <james@conan.io>

Co-authored-by: Luis Martinez de Bartolome Izquierdo <lasote@gmail.com>
Co-authored-by: Joe <8194899+cobalt77@users.noreply.github.com>
Co-authored-by: Javier G. Sogo <jgsogo@gmail.com>
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] Stack trace instead of error message with conan alias
2 participants