upgrade-2.x: Block draft version upgrades using the release_tag version #388
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.
Atm given a draft OS release 3.2.1-2345, users would be able to HUP to it via both
device os-update 3.2.1-2345
, in which case the script finds the version via theraw_version
fielddevice os-update 3.2.1
, in which case the script find the version via therelease_tag
After this, HUPing to draft-OS releases will only work using the
raw_version
which removes the ambiguity and block users from accidentally HUPing to a draft release (eg they misstype the patch version or on purpose try to increase it to check whether a new version is out).Partially reverts commit ce70f31.
Change-type: patch
See: https://balena.fibery.io/Work/Improvement/Remove-hostApp-version-release-tag-dependency-from-API-1412