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

Rename image(s) cmd flags to type(s) and add checkpoints to build #879

Merged
merged 4 commits into from
Aug 28, 2024

Conversation

achilleas-k
Copy link
Member

@achilleas-k achilleas-k commented Aug 27, 2024

These are a couple of changes I've been fiddling with while working on other stuff.

  1. I think --type is a better name for the image type flag than --image for cmd/build and the same for the plural form for cmd/gen-manifests and cmd/list-images.
  2. I caught myself doing checkpointing by editing the command or generating manifests and running them separately sometimes when experimenting with builds. Let's just add a --checkpoints flag that gets passed down to osbuild.

We might add an --osbuild-options flag instead and use that to pass stuff down to osbuild in the future, but let's keep this short for now.

@kingsleyzissou
Copy link
Contributor

or generating manifests and running them separately sometimes when experimenting with builds

I definitely don't do this /s

Copy link
Contributor

@kingsleyzissou kingsleyzissou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to update ./cmd/list-images too

@achilleas-k
Copy link
Member Author

achilleas-k commented Aug 27, 2024

I think we need to update ./cmd/list-images too

Oh right, forgot about that one. Thanks!

The build command requires the --image flag to specify the image type to
build.  Similarly, gen-manifests and list-images commands support
specifying image types using the --images flag.  These were originally
named this way because image-type(s) felt too long.  Rename them to
--type and --types.  This is less ambiguous and matches the flag name
chosen by bootc-image-builder.

The cmds are development and testing tools, so there is no need to keep
the old and deprecate it for a backwards compatible and smooth
transition.
Update the flags wherever they're used in our test setup.
Support specifying checkpoints when running cmd/build.
@achilleas-k
Copy link
Member Author

Changed list-images too and updated the commit message.

Copy link
Contributor

@kingsleyzissou kingsleyzissou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you want me to learn to use new flag? No way! 🤯

Just kidding, all looks fine 😅

@achilleas-k achilleas-k added this pull request to the merge queue Aug 28, 2024
@schuellerf
Copy link
Contributor

Would it make sense to return an error or deprecation warning for people using the "old" argument?

@achilleas-k
Copy link
Member Author

Would it make sense to return an error or deprecation warning for people using the "old" argument?

I considered it but it's just too much fluff for something that's only used internally.

Merged via the queue into osbuild:main with commit 429ee5a Aug 28, 2024
18 checks passed
@achilleas-k achilleas-k deleted the fiddling/cmds branch August 28, 2024 10:40
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.

4 participants