Skip to content

Conversation

@FrostyX
Copy link
Contributor

@FrostyX FrostyX commented Sep 25, 2025

@FrostyX FrostyX requested a review from a team as a code owner September 25, 2025 14:02
@FrostyX FrostyX requested review from croissanne, mvo5 and thozza and removed request for a team September 25, 2025 14:02
@FrostyX
Copy link
Contributor Author

FrostyX commented Sep 25, 2025

I based the PR on top of #300 to make my life easier. Once that PR gets merged, I will rebase so this one has just one commit.

@thozza
Copy link
Member

thozza commented Oct 1, 2025

@FrostyX You'll need to update the vendored osbuild/images to https://github.com/osbuild/images/releases/tag/v0.200.0

@FrostyX
Copy link
Contributor Author

FrostyX commented Oct 1, 2025

Thank you @thozza,
I was puzzled what's wrong with it.

Updated.

@thozza
Copy link
Member

thozza commented Oct 2, 2025

@FrostyX, you need to bump the minimum required version of osbuild in the SPEC file, because the vendored osbuild/images library requires it (See the SPEC file check).

@FrostyX
Copy link
Contributor Author

FrostyX commented Oct 2, 2025

Some of the checks run for quite a long time, so I don't know yet. But hopefully, third time's the charm.

Thank you @thozza

thozza
thozza previously approved these changes Oct 2, 2025
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.

LGTM

Copy link
Collaborator

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

This is fine but see osbuild/images#1915 (comment) - I'm not a fan of the [2]string to represent key/val. Not a blocker, I don't want to slow you down but I would like to tweak this at some point.

Also a tiny question inline.

var slicedTags [][2]string
for _, tag := range tags {
parts := strings.SplitN(tag, "=", 2)
if len(parts) != 2 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the policy of AWS here? Are values wit = allowed? Because if they are we could change this to if len(parts) < 2 and allow = in the values as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am still testing this part of the PR but then I will rebase :-)

Copy link
Contributor Author

@FrostyX FrostyX Oct 8, 2025

Choose a reason for hiding this comment

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

It allows = in values, so I changed the code like you suggested.

@supakeen
Copy link
Member

supakeen commented Oct 7, 2025

This is fine but see osbuild/images#1915 (comment) - I'm not a fan of the [2]string to represent key/val. Not a blocker, I don't want to slow you down but I would like to tweak this at some point.

Also a tiny question inline.

We can do a potential struct follow-up ourselves so we don't have @FrostyX juggle too many dependent PRs.

This PR needs some updates to the go deps (probably because we bumped versions in main) but otherwise looks fine.

@FrostyX
Copy link
Contributor Author

FrostyX commented Oct 8, 2025

I submitted a PR for the AWSTag struct
osbuild/images#1939

@mvo5
Copy link
Collaborator

mvo5 commented Oct 8, 2025

I submitted a PR for the AWSTag struct osbuild/images#1939

Super nice, thank you! Probably worth cleaning the commit history (there is a wip commit in there) when doing the update once #1939 is merged.

@FrostyX
Copy link
Contributor Author

FrostyX commented Oct 8, 2025

I rebased the PR. I think it will require some go.mod update once the images PR gets merged but otherwise I think it is ready.

@supakeen supakeen requested a review from lzap October 24, 2025 06:57
@supakeen supakeen added this pull request to the merge queue Oct 24, 2025
Merged via the queue into osbuild:main with commit ee1d076 Oct 24, 2025
38 checks passed
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.

Allow setting tags when uploading to AWS

5 participants