Repository navigation
Use resource names in dsclinux and dscpm exports - #15
Merged
Merged
Conversation
Emit _name metadata alongside existing name properties for dsclinux and dscpm exports. Declare the metadata in resource schemas and cover DSC top-level naming in integration tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
URL-encode _name without changing resource name properties. Use name,version for RPM exports to keep install-only package versions distinct, while retaining name-only labels for APT. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Percent-encode export labels with spaces as %20, preserving only RFC 3986 unreserved bytes. Append scope to non-system service labels before encoding so user and system services do not share export names. Preserve original resource properties and RPM version-qualified labels. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DSC uses the export-only
_nameproperty to populate each resource's top-level configuration name. Without it, exported resources receive generated names such asgroups-52instead of meaningful labels. Raw labels can contain problematic characters, while user/system services and multiple installed RPM versions can otherwise share labels.Emit RFC 3986 percent-encoded
_namelabels for Linux groups and services, APT repositories (including the legacyDscExtras.Apt/Repositoryalias), and packages:name.name,scope, distinguishing user services from system services with the same name.name,version, distinguishing multiple installed versions of install-only packages.Compose the label before encoding. Leave only ASCII letters, digits, and
-._~unchanged; encode spaces as%20, literal+as%2B, and other bytes as%HH. Original resource properties and Get, Test, and Set output remain unchanged.Declare
_nameas an optional read-only string in all affected schemas. Extend JSON Lines and DSC integration coverage for percent encoding, scope-aware service labels, preserved resource identities, and distinct RPM versions; update the export documentation.