-
Notifications
You must be signed in to change notification settings - Fork 337
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
Miss-leaded error message while building with invalid package metadata #915
Comments
I agree that the error is somewhat misleading. See also the help on package attributes for the |
Thanks for the info ! Yes, I changed the request package name to |
Agreed this should be a warning, I'll make this change.
Please be aware that by specifying `python-*`, you're specifically using
something called "requirements expansion" (which is fine), see
https://github.com/nerdvegas/rez/wiki/Package-Definition-Guide#requirements-expansion
Cheers
A
…On Sun, Aug 2, 2020 at 6:58 AM David Lai ***@***.***> wrote:
Thanks for the info ! Yes, I changed the request package name to python
or python-* and it resolved. 👍🏼
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#915 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOUSRWQB6XETA64D7OBY3R6R6WJANCNFSM4PR5OABQ>
.
|
Actually I'll make this an error - this then matches existing behaviour when build system is know (eg, a CMakeLists.txt is present) |
Hi everyone 👋🏼
While I was trying to
rez-build
my Python project, I got an error message saying that I have no build system to use :But the doc says if
package.py
havebuild_command
attribute, custom build system should be used.Here's what my
package.py
looks like:I think my
package.py
was fine, at least should be enough to summon custom build system.So I start to hunt the cause, and I found it was because my required package "python*" some how failed the schema validation.
And here's the reason why the
PackageMetadataError
andPackageRequestError
was not raised :https://github.com/nerdvegas/rez/blob/103270d1b39e139223dec706236cbaffc4e14669/src/rez/build_system.py#L31-L36
Any reason why it's being ignored ? I think there should be at least a warning message. 🤔
The text was updated successfully, but these errors were encountered: