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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid double v prefix in the AppList #2123

Merged
merged 2 commits into from
Oct 26, 2020
Merged

Avoid double v prefix in the AppList #2123

merged 2 commits into from
Oct 26, 2020

Conversation

andresmgot
Copy link
Contributor

Description of the change

The appVersion field in the Chart.yaml may contain already the v prefix, and we are prefixing another v again:

Screenshot from 2020-10-22 13-04-18

In any case, the appVersion doesn't need that prefix so I am also removing it from our chart release process.

Applicable issues

I'd swear I fixed this already but I couldn't find it, maybe I forgot to create the PR 馃

@@ -71,6 +71,7 @@ replaceImage() {
updateRepo() {
local targetRepo=${1:?}
local targetTag=${2:?}
local targetTagWithoutV=${targetTag/v/}
Copy link
Contributor

Choose a reason for hiding this comment

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

A bit pedantic, but you probably want to strip from the front of the var, rather than replacing anywhere in the var?

$ VERSIONTEST=v1.2.3 && echo ${VERSIONTEST#v}
1.2.3

$ VERSIONTEST=1.2.3v && echo ${VERSIONTEST#v}
1.2.3v

$ VERSIONTEST=1.2.3v && echo ${VERSIONTEST/v/}
1.2.3

@andresmgot andresmgot merged commit 8f27769 into master Oct 26, 2020
@andresmgot andresmgot deleted the doubleV branch November 26, 2020 09:55
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.

None yet

2 participants