-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
meson: bump ninja #3112
meson: bump ninja #3112
Conversation
An unexpected error happened and has been reported. Help is on its way! 🏇 |
def requirements(self): | ||
self.requires("ninja/1.10.1") | ||
|
||
def package_id(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for moving this up? We pretty much always have this as the last method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To follow execution order. package_id is called after requirements, so it's easier to understand conanfile's logic (here it's simple, I agree).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having this uniform across as many recipes as possible is more important than any particular order specifically. So unless you want to open an issue talking about a new standard and mass changing every recipe I would recommend against changing it for selected/arbitrary recipes 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK, there are no guidelines in CCI regarding position of methods in conanfile, but most recipes follow order of executions for common methods like source, build, package, package_info.
A lot of recipes don't have package_id at the end, probably more than 50% having package_id. So there is no such thing as uniform across recipes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SpaceIm 's motivation makes sense.
It's nice to have the same the methods listed in the same order as they are executed.
I would not make it a hard requirement though, just nice.
If we really want a uniform recipe, we should write a reformatter to reformat the recipes.
It should in no way become a rule/hook because that would scare away too many people.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say for me order is not important. you may keep alphanumeric order of methods, or use another one, if you want.
it just make a bit harder to review PRs if they are re-ordering methods constantly.
All green in build 2 (
|
Specify library name and version: meson/all
conan-center hook activated.
bump ninja to avoid errors like
ninja: error: FindFirstFileExA
. Though, I'm not sure that current meson package ensures that ninja packaged by conan is used at consume time...