Skip to content

Conversation

@christoph-zededa
Copy link
Contributor

@christoph-zededa christoph-zededa commented Aug 28, 2025

this makes --dry-run inconvenient as it includes a newline

- What I did

trimming all whitespaces around the GOPKGVERSION

- How I did it

- How to verify it

Run

~/src/linuxkit/src/cmd/linuxkit/linuxkit pkg build --platforms linux/amd64 --force --dry-run pkg/pillar

check that after --build-arg=GOPKGVERSION=v0.0.0-20250828163257-a2e7a9467df0 there is no newline

- Description for the changelog

Fix trailing newline after GOPKGVERSION

- A picture of a cute animal (not mandatory but encouraged)

ChatGPT Image Aug 28, 2025, 04_47_16 PM

@deitch
Copy link
Collaborator

deitch commented Aug 29, 2025

I am not sure I agree with this. If I say "dry run", and it finds it in the cache, then it is telling what it would build: nothing. If you would force a build, then pkg build --force, whose equivalent is pkg build --force --dry-run.

@christoph-zededa
Copy link
Contributor Author

I am not sure I agree with this. If I say "dry run", and it finds it in the cache, then it is telling what it would build: nothing. If you would force a build, then pkg build --force, whose equivalent is pkg build --force --dry-run.

pkg build --force --dry-run is a good workaround for me.
I will remove that commit so that only the fix for the newline is left.

this makes `--dry-run` inconvenient as it includes a newline

Signed-off-by: Christoph Ostarek <[email protected]>
@christoph-zededa christoph-zededa changed the title pkglib/build: do a --dry-run even when cached pkglib/git: remove trailing spaces of GOPKGVERSION Aug 29, 2025
@deitch
Copy link
Collaborator

deitch commented Aug 29, 2025

LGTM. Unfortunately, we need CI to run before merging, which can take a while.

@deitch deitch merged commit 179f74a into linuxkit:master Aug 29, 2025
25 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.

2 participants