Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions build/azure-pipeline.pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ extends:
parameters:
publishExtension: ${{ parameters.publishExtension }}
ghCreateTag: false
standardizedVersioning: true
l10nSourcePaths: ./src/client
sourceRepositoriesToScan:
include:
Expand Down Expand Up @@ -103,8 +104,8 @@ extends:
- script: nox --session install_python_libs
displayName: Install Jedi, get-pip, etc

- script: python ./build/update_ext_version.py --for-publishing
displayName: Update build number
# - script: python ./build/update_ext_version.py --for-publishing
# displayName: Update build number

- script: python ./build/update_package_file.py
displayName: Update telemetry in package.json
Expand Down
4 changes: 1 addition & 3 deletions build/update_ext_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ def main(package_json: pathlib.Path, argv: Sequence[str]) -> None:
if args.build_id:
# If build id is provided it should fall within the 0-INT32 max range
# that the max allowed value for publishing to the Marketplace.
if args.build_id < 0 or (
args.for_publishing and args.build_id > ((2**32) - 1)
):
if args.build_id < 0 or (args.for_publishing and args.build_id > ((2**32) - 1)):
raise ValueError(f"Build ID must be within [0, {(2**32) - 1}]")

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