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

meson: bump ninja #3112

Merged
merged 2 commits into from
Oct 6, 2020
Merged

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Oct 5, 2020

Specify library name and version: meson/all

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    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...

@conan-center-bot
Copy link
Collaborator

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):
Copy link
Contributor

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

Copy link
Contributor Author

@SpaceIm SpaceIm Oct 5, 2020

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).

Copy link
Contributor

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 🤷‍♂️

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

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.

@SpaceIm SpaceIm closed this Oct 6, 2020
@SpaceIm SpaceIm reopened this Oct 6, 2020
@conan-center-bot
Copy link
Collaborator

All green in build 2 (97ce308542e6c27f1a6aaeb01eb7324a313e94c7)! 😊

@conan-center-bot conan-center-bot merged commit 475ae0e into conan-io:master Oct 6, 2020
@SpaceIm SpaceIm deleted the meson-bump-ninja branch October 6, 2020 15:04
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.

None yet

7 participants