-
Notifications
You must be signed in to change notification settings - Fork 108
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
Use distro repos in cloudapi #3928
Conversation
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.
Overall, this looks good. 👍 I added one question, but nothing serious.
cb5778e
to
709c8ca
Compare
5cd4025
to
cae1af9
Compare
cae1af9
to
f9dc250
Compare
240f5a4
to
641ec3c
Compare
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 found one problem that I commented on.
Other than that, I'm wondering if it would be worth to extend some of the existing functional test cases to also cover this feature, or at least adding a new unit test for it.
The rest looks good 👍
2568bdd
to
ef8fe72
Compare
Added a unit test to check it. I had to hard-code a path traversal so I could load the repos, it seems stable, but let me know if there's a better way. |
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.
Neat.
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.
Thanks for adding the test case.
This is so that both the weldr and cloud api's can use it as the source of their repositories.
In order to support cloudapi blueprint requests from the cmdline using composer-cli it needs to select the repositories based on the selected distribution instead of requiring the user to include them with the request. If the image request includes repositories they are used, which matches the current behavior. If the repository list is empty it will use the distribution name to select from the repositories shipped with osbuild-composer.
This pull request includes: