Skip to content

Conversation

@Gijsreyn
Copy link
Contributor

PR Summary

This PR adds a place in the library's context to hold the dsc CLI's version number. The version is set at startup from the CLI. For backwards compatibility, it falls back to the library's own version. Before this change, the version in the metadata came from the library crate, which could be different then DSC's CLI version.

PR Context

Fix #1065

@Gijsreyn Gijsreyn force-pushed the fix-metadata-version branch from 2e9c8ae to b1695d3 Compare August 29, 2025 07:47
Copy link
Member

@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

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

Can you add a test case for this. You can probably just compare it to dsc --version (although just the latter part of the output)

@Gijsreyn Gijsreyn force-pushed the fix-metadata-version branch from b1695d3 to cdb0ba7 Compare August 31, 2025 03:33
@Gijsreyn Gijsreyn requested a review from SteveL-MSFT August 31, 2025 03:55
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Aug 31, 2025
Merged via the queue into PowerShell:main with commit 57e0317 Aug 31, 2025
4 checks passed
@Gijsreyn Gijsreyn deleted the fix-metadata-version branch September 5, 2025 05:56
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.

Microsoft.DSC metadata version doesn't return prerelease versions

2 participants