Skip to content

make suffix in s3 artifact manifest not contain cname#137

Merged
yeoldegrove merged 2 commits into
mainfrom
fix/manifest_paths_suffix
Jul 10, 2025
Merged

make suffix in s3 artifact manifest not contain cname#137
yeoldegrove merged 2 commits into
mainfrom
fix/manifest_paths_suffix

Conversation

@yeoldegrove

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

make suffix in s3 artifact manifest not contain cname

Which issue(s) this PR fixes:
gardenlinux/gardenlinux@09ea136 and a7545af introduced a breaking change that breaks GLCI.

@yeoldegrove yeoldegrove added this to the 2025-07 milestone Jul 10, 2025
@yeoldegrove
yeoldegrove requested a review from a team July 10, 2025 06:08
@yeoldegrove yeoldegrove self-assigned this Jul 10, 2025
sha256sum = file_digest(fp, "sha256").hexdigest()

if artifact.name.startswith(cname):
suffix = artifact.name[len(cname) :]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Curious choice, I would do artifacte.name.replace(cname, '') but I like the smiley :]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Both solutions will work of course ;)

@yeoldegrove
yeoldegrove merged commit e812bf7 into main Jul 10, 2025
9 checks passed
yeoldegrove added a commit to gardenlinux/gardenlinux that referenced this pull request Jul 10, 2025
yeoldegrove added a commit to gardenlinux/gardenlinux that referenced this pull request Jul 10, 2025
@NotTheEvilOne
NotTheEvilOne deleted the fix/manifest_paths_suffix branch March 23, 2026 16:11
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.

2 participants