-
Notifications
You must be signed in to change notification settings - Fork 168
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
Move variant setup from cosa init
to cosa build
#3276
Comments
So, it looks like we'd have to write the |
And reading the |
So we're moving from one place where it is set to multiple places needing it passed. |
I would agree to move all tools to reading the value from the build |
To elaborate, the main concern I have with If we want to keep Hmm, maybe we can keep it in
Not sure I follow; why does |
Definitely agree.
+1 for moving to a hidden file. I would prefer to keep it even on successful builds so that all So another option would be to add another command that just sets the variant that will be build in this file so that it's not decided on
OK, |
|
Right, though |
That could work but we would still need the marker file at the beginning so why not keep it all the time, used only by fetch & build operations? |
Cool with keeping it, but maybe we can name it something like |
Feature Request
Currently, the variant to build is specified at
cosa init
time and then stored insrc/config.json
and then read by all other cosa commands: https://github.com/coreos/coreos-assembler/blob/main/src/cmdlib.sh#L177The variant is also stored in the
meta.json
after acosa build
but this is apparently not working right now for an uknown reason: https://github.com/coreos/coreos-assembler/blob/main/src/cmd-build#L467As suggested by @jlebon, we could remove the duplication here by passing the variant as an argument to
cosa build
only instead and have all later steps & kola read the variant value from themeta.json
value.See:
We'll also have to change RHCOS CI to adapt to it: https://github.com/openshift/os/blob/master/ci/prow-entrypoint.sh
As well as the pipeline: https://github.com/coreos/fedora-coreos-pipeline
Proposed UX:
The text was updated successfully, but these errors were encountered: