Skip to content

Fix universal package version validation comment and add SHA prefix#28248

Merged
edgchen1 merged 1 commit intomainfrom
edgchen1/fix_universal_package_version
Apr 28, 2026
Merged

Fix universal package version validation comment and add SHA prefix#28248
edgchen1 merged 1 commit intomainfrom
edgchen1/fix_universal_package_version

Conversation

@edgchen1
Copy link
Copy Markdown
Contributor

Description

  • Correct misleading 'SemVer 1.0.0' label; the universal version regex actually validates SemVer 2.0.0 syntax without build metadata, which is what Azure Universal Packages requires.

  • Prefix the dev short SHA with 'commit-' in universal_version so the pre-release identifier always contains a non-digit, avoiding spurious validation failures for all-numeric SHAs with leading zeros.

Motivation and Context

Fix invalid version when we have an all-numeric commit SHA starting with 0.

- Correct misleading 'SemVer 1.0.0' label; the universal version regex actually validates SemVer 2.0.0 syntax without build metadata, which is what Azure Universal Packages requires.

- Prefix the dev short SHA with 'commit-' in universal_version so the pre-release identifier always contains a non-digit, avoiding spurious validation failures for all-numeric SHAs with leading zeros.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Azure Pipelines step that computes and validates plugin package versions so that Universal Package “dev” versions always pass SemVer validation (and the inline documentation matches the actual constraints).

Changes:

  • Prefixes the dev short SHA with commit- in universal_version to avoid invalid all-numeric pre-release identifiers with leading zeros.
  • Corrects the Universal Packages SemVer validation comment/error text to SemVer 2.0.0 (without build metadata).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@edgchen1 edgchen1 merged commit 8861ecd into main Apr 28, 2026
104 of 111 checks passed
@edgchen1 edgchen1 deleted the edgchen1/fix_universal_package_version branch April 28, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants