-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Wrong image is tagged on subsequent skaffold build #2694
Comments
Thank you for filing, @demisx! |
Hi @balopat. Thank you for your usual prompt response! I thought caching was off by default. Looking at the
it sounds like I need to pass this option to enable caching. Am I reading it wrong? |
I've confirmed that this issue doesn't happen in v0.36 if I run with
|
Yeah, we switched it on by default with v0.36 - thank you for verifying the behavior! |
Got it. Maybe the help output should be updated globally as well to be a little more clear:
If this is just a matter of search & replace (I'm not a Go programmer yet), I can do it myself and submit a PR. Let me know |
I think that's a good idea to make the default value a bit clearer! ideally an automated way would be the best - i.e. the text should pick up the default value from the Flag and we should use that. It's a good first issue to tackle as a go programmer ;) It's a bit tricky though to do it uniformly because not all default values make sense to put in the usage, e.g.: https://github.com/GoogleContainerTools/skaffold/blob/master/cmd/skaffold/app/cmd/flags.go#L232-L240 We'll have to think about that a bit - but maybe "" -> "not set" and we could prefix all |
Agreed. That would be nice. In the meantime, please see if this update is still better than the status quo GH-2711 |
Thanks for that, it's going in now! |
Here's the issue:
Let me fix that. |
Fixes GoogleContainerTools#2694 Signed-off-by: David Gageot <david@gageot.net>
Expected behavior
Subsequent
skaffold build
executions upon unchanged codebase do not tag wrong images.Actual behavior
The first time I run
skaffold build -p dev
command I get 3 images built and tagged as expected. When I run the same command for the second time, wrong image gets retagged with "init-db" tag. Later when my app pulls these images from local repo it fails to bootstrap because the wrong image is tagged with "init-db:..." tag now. This does not happen in v0.31Information
Additional docs
Skaffold Run log:
double-skaffold-build-output.txt
The text was updated successfully, but these errors were encountered: