Skip to content

Commit 8f53666

Browse files
committed
Ensure the suite version matches the sdk suite version for standalones
1 parent 21f1cad commit 8f53666

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/mx.sdk/mx_sdk_vm_ng.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,10 @@ def _add_link(name, target):
10171017

10181018
class DeliverableStandaloneArchive(DeliverableArchiveSuper):
10191019
def __init__(self, suite, name=None, deps=None, excludedLibs=None, platformDependent=True, theLicense=None, defaultBuild=True, **kw_args):
1020+
# mx deploy-artifacts takes the version from the suite, we ensure it is the same version as SDK.
1021+
# This also checks the release field because release_version() is '...-dev' when release: False.
1022+
assert suite.release_version() == _suite.release_version(), f"version from {suite.name} ({suite.release_version()}) does not match version in sdk ({_suite.release_version()})"
1023+
10201024
# required
10211025
standalone_dir_dist = _require(kw_args, 'standalone_dist', suite, name)
10221026
community_archive_name = _require(kw_args, 'community_archive_name', suite, name)

0 commit comments

Comments
 (0)