Skip to content
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

Report error in CreateNewImage when no tags are passed in #240

Closed
rainersigwald opened this issue Nov 8, 2022 · 0 comments · Fixed by #241
Closed

Report error in CreateNewImage when no tags are passed in #240

rainersigwald opened this issue Nov 8, 2022 · 0 comments · Fixed by #241

Comments

@rainersigwald
Copy link
Member

rainersigwald commented Nov 8, 2022

The silent failure is because there is nothing in this foreach:

So we just don't attempt any push. We should probably error if ImageTags is empty.

Originally posted by @rainersigwald in #236 (comment)

rainersigwald added a commit to rainersigwald/sdk-container-builds that referenced this issue Nov 8, 2022
If something caused ImageTags to be empty, the foreach-tag-push loop
would silently do nothing, which is a confusing user experience.

Instead, emit an error and fail. Fixes dotnet#240.
rainersigwald added a commit to rainersigwald/sdk-container-builds that referenced this issue Nov 11, 2022
If something caused ImageTags to be empty, the foreach-tag-push loop
would silently do nothing, which is a confusing user experience.

Instead, let MSBuild emit an error and fail. Fixes dotnet#240.
rainersigwald added a commit to rainersigwald/sdk-container-builds that referenced this issue Nov 11, 2022
If something caused ImageTags to be empty, the foreach-tag-push loop
would silently do nothing, which is a confusing user experience.

Instead, let MSBuild emit an error and fail. Fixes dotnet#240.
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 a pull request may close this issue.

1 participant