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

Write chart_version only if latest_tag is defined #202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fhofherr
Copy link

The chart_version output was written regardless of whether the latest_tag variable was defined. The latest_tag variable is only defined if skip_packaging is not set. This leads to issue #171.

Setting skip_packaging implies that an external process takes care of packaging the chart and setting the chart version. There is thus no need to write the chart_version output as it should already be known.

Closes #171

The chart_version output was written regardless of whether the
latest_tag variable was defined. The latest_tag variable is only defined
if skip_packaging is not set. This leads to issue helm#171.

Setting skip_packaging implies that an external process takes care of
packaging the chart and setting the chart version. There is thus no need
to write the chart_version output as it should already be known.

Closes helm#171

Signed-off-by: Ferdinand Hofherr <[email protected]>
@fhofherr fhofherr force-pushed the 171-unbound-variable-latest_tag branch from 5bead86 to f5e8e29 Compare June 19, 2024 12:11
Copy link

@BrutalHex0 BrutalHex0 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link

@BrutalHex0 BrutalHex0 left a comment

Choose a reason for hiding this comment

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

LGTMS 👍

@IGx89
Copy link

IGx89 commented Jul 3, 2024

@davidkarlsen would you be able to take a look at this PR too? It fixes a regression in v1.6 that's been preventing a lot of us from upgrading from v1.5.

@ChengjieLi28
Copy link

@fhofherr Hi. Thanks for your fix.
Since there has been no official response for a long time, I will directly use the branch of your forked repo as the github action. This problem can be resolved via your branch.
Please don't delete this branch, thank you.
😂😂🤷🏻‍♀️🤷🏻‍♀️

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.

cr.sh: line 109: latest_tag: unbound variable
4 participants