Skip to content

Commit c9ae0f7

Browse files
authored
Fix pre-release platform specific build number (#23684)
1 parent 99437b2 commit c9ae0f7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

build/azure-pipeline.pre-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ extends:
3636
parameters:
3737
publishExtension: ${{ parameters.publishExtension }}
3838
ghCreateTag: false
39+
standardizedVersioning: true
3940
l10nSourcePaths: ./src/client
4041
sourceRepositoriesToScan:
4142
include:
@@ -103,8 +104,8 @@ extends:
103104
- script: nox --session install_python_libs
104105
displayName: Install Jedi, get-pip, etc
105106

106-
- script: python ./build/update_ext_version.py --for-publishing
107-
displayName: Update build number
107+
# - script: python ./build/update_ext_version.py --for-publishing
108+
# displayName: Update build number
108109

109110
- script: python ./build/update_package_file.py
110111
displayName: Update telemetry in package.json

build/update_ext_version.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ def main(package_json: pathlib.Path, argv: Sequence[str]) -> None:
102102
if args.build_id:
103103
# If build id is provided it should fall within the 0-INT32 max range
104104
# that the max allowed value for publishing to the Marketplace.
105-
if args.build_id < 0 or (
106-
args.for_publishing and args.build_id > ((2**32) - 1)
107-
):
105+
if args.build_id < 0 or (args.for_publishing and args.build_id > ((2**32) - 1)):
108106
raise ValueError(f"Build ID must be within [0, {(2**32) - 1}]")
109107

110108
package["version"] = ".".join((major, minor, str(args.build_id)))

0 commit comments

Comments
 (0)