Skip to content

Use normalized platform spec for built-in ARGs#14

Merged
chmeliik merged 2 commits intokonflux-ci:devfrom
slimreaper35:build-args
Feb 23, 2026
Merged

Use normalized platform spec for built-in ARGs#14
chmeliik merged 2 commits intokonflux-ci:devfrom
slimreaper35:build-args

Conversation

@slimreaper35
Copy link
Copy Markdown
Member

More context here: konflux-ci/konflux-build-cli#66

The ioutil package has been deprecated since Go 1.16. This change
replaces the deprecated ioutil.Discard with the recommended io.Discard
to ensure compatibility with future Go versions and follow best
practices.

--
https://github.com/golang/go/blob/master/src/io/ioutil/ioutil.go#L105

Signed-off-by: Michal Šoltis <msoltis@redhat.com>
The default platform spec may not be normalized, which can cause
inconsistencies when used for built-in Docker ARG variables. By
normalizing the platform spec, we ensure consistent formatting
across different environments.

--
https://github.com/containerd/platforms/blob/2e51fd9435bd985e1753954b24f4b0453f4e4767/platforms.go#L336

Signed-off-by: Michal Šoltis <msoltis@redhat.com>
@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Feb 23, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@chmeliik
Copy link
Copy Markdown

Thanks for the fix and for fixing the deprecation warning 🌮

@chmeliik chmeliik merged commit 2c26670 into konflux-ci:dev Feb 23, 2026
4 checks passed
@slimreaper35 slimreaper35 deleted the build-args branch February 23, 2026 17:03
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