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

fixed broken camelK version check due to new tag naming logic #500 #501

Merged
merged 4 commits into from
Jul 31, 2020
Merged

fixed broken camelK version check due to new tag naming logic #500 #501

merged 4 commits into from
Jul 31, 2020

Conversation

lhein
Copy link
Contributor

@lhein lhein commented Jul 30, 2020

Signed-off-by: Lars Heinemann lhein.smx@gmail.com

@lhein
Copy link
Contributor Author

lhein commented Jul 30, 2020

I tried to find the least intrusive solution to this issue. We distinguish tag names and versions now and if the version does not start with 0.x or 1.0 then we assume the tag name prepends a v like for v1.1.0 which introduced this new naming logic. Please test carefully @bfitzpat

@lhein lhein requested a review from bfitzpat July 30, 2020 12:10
@bfitzpat
Copy link
Contributor

I will take a look at this in a moment, but I'm curious if it's necessary. When asked, Claus had me create apache/camel-k#1645 so they could avoid the situation moving forward?

@bfitzpat
Copy link
Contributor

bfitzpat commented Jul 30, 2020

Ahhh. I was not aware of apache/camel-k#1603 and apache/camel-k#1601

Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
@bfitzpat
Copy link
Contributor

A few comments... since the new versions will ALWAYS now start with a v, I like the new approach.

When I turn off auto upgrade and change the version to v1.1.0, I see Setting for Apache Camel K runtime version changed to invalid version v1.1.0. Please set the version to a valid runtime version. So my minimal validation is working a little at least.

Wondering if we should check for the 'v' in the applyDefaultVersionSettings function in extension.ts?

And we should now change the runtime version setting label to remove the tag comment

image

…logic if someone enters a version starting with v #500

Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
…imeversion when starting with a v #500

Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
Copy link
Contributor

@bfitzpat bfitzpat left a comment

Choose a reason for hiding this comment

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

+1

@lhein lhein merged commit 56b3725 into camel-tooling:master Jul 31, 2020
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.

2 participants