-
Notifications
You must be signed in to change notification settings - Fork 185
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
Support the mkosi build type #1640
base: master
Are you sure you want to change the base?
Conversation
Hello @Vogtinator! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-11-05 15:15:58 UTC |
The problem is that the upstream recipes are |
The way I read the man page is that a We could also match only |
... now I understand what you mean - it's about preexisting recipe files that should be recognized by OBS as-is, without filename changes. I don't think that's solvable, as there can technically be a The PR as-is works, it's just a bit annoying with automatic recipe detection not working if there are multiple |
Yeah you'd need to write OBS-specific recipes. That might be fine, as an entry point, as the bulk of the recipes could be in auxiliary files which should just work - but please do test it, like having |
For myself, having better integration and being able to sign mkosi artifacts and build extensions based on pre-existing base images (dependencies) is way way more important than compatibility, so if this is necessary to get more development going, I have no objections on my side to changing the recipe names as needed. |
OBS doesn't really support subdirectories in sources, only with .obscpio archives which can't be inspected for e.g. dep resolution... It's possible that this changes now with git scmsync backed packages and projects, but I suppose plain osc packages should work still. |
@Vogtinator I started working on a change in build recipe handling this week. Using |
btw on the topic of OBS and mkosi, any chance this could get a quick look please? openSUSE/open-build-service#15823 |
Ok, so for now I'll replace Should I revert the then unneeded refactoring for |
Unlike other recipe files, OBS detects this by matching the prefix rather than the suffix. As this would cause conflicts with e.g. mkosi.spec the build type detection had to be changed a bit.
The darker linter complains about build.py - should I apply the rather large reformatting? |
No, keep it as is, it's fine. |
On second thought - we should keep the behaviour in sync with OBS and ATM that does mkosi.*. If we want to change the behaviour it should be done in OBS first (which is not that easy...) |
Unlike other recipe files, OBS detects this by matching the prefix rather than the suffix. As this would cause conflicts with e.g. mkosi.spec the build type detection had to be changed a bit.
IMO the mkosi.* glob is really inconvenient. It would be great if OBS could switch to *.mkosi or maybe *.mkosi.conf or similar. @bluca @mlschroe