conan icon indicating copy to clipboard operation
conan copied to clipboard

Improve the error message when trying to use a `build-scripts` package as a regular requirement

Open valgur opened this issue 1 year ago • 0 comments

It currently fails on an assert with no further context provided in the stack trace. There might be a better place to do this check, though.

Also, might want to add a check for PackageType.PYTHON as well.

Changelog: Fix: Improve the error message when trying to use a build-scripts package as a regular requirement Docs: Omit

  • [ ] 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.

valgur avatar Dec 31 '23 13:12 valgur