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

Fix unable to plan deployment on failed to determine app version #4234

Merged
merged 3 commits into from
Mar 1, 2023

Conversation

khanhtc1202
Copy link
Member

@khanhtc1202 khanhtc1202 commented Feb 28, 2023

What this PR does / why we need it:

Previously, these functions re-used err variable, which defined in function signature. That make the caller side always return failed in case we can't determine the application version (which only be used in showing stub). The right behaviour should be only show version unknown and keep deploying as usual.

ref: https://github.com/pipe-cd/pipecd/blob/master/pkg/app/piped/controller/planner.go#L211-L214

Thanks @kevin55156 for pointing out this 👍

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

Fix unable to plan deployment if failed to determine application version(s)

@khanhtc1202 khanhtc1202 enabled auto-merge (squash) February 28, 2023 10:53
@khanhtc1202 khanhtc1202 enabled auto-merge (squash) March 1, 2023 04:35
Copy link
Member

@knanao knanao left a comment

Choose a reason for hiding this comment

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

Here you go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants