Corrects regression in setup scripts that fetch the SDK version #353
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TL;DR
Stops track setup scripts from stripping the
1
from the SDK versionDetails
Fixes a defect in track setup scripts for the "Avoiding Installation
Pitfalls", "Closing the Support Installation Gap", and "Protecting Your
Assets" labs that caused the
1
to be stripped from the SDK versionwhen the track was created. This defect was introduced when I updated the
function that fetches the SDK version to use the chart registry instead of
GitHub.
The old code resulted in a version string that included a
v
at thebeginning from the GitHub tag, which was stripped on use. The version tags in
the registry do not have a
v
prefix, and I had lazily removed thev
prefixby dropping the first character of the version string. This resulted in the
1
being stripped once the function changes. This change removes theexpressions that dropped the first character of the version string.
It also assures that track metadata updates Instruqt inserted into several
files in the affected labs is under source control.