Skip to content

Ensure Sensitive handling of PSCredentials; module version munging; DSC metadata in metadata.json #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 23, 2020
Merged

Ensure Sensitive handling of PSCredentials; module version munging; DSC metadata in metadata.json #19

merged 4 commits into from
Apr 23, 2020

Conversation

michaeltlombardi
Copy link

No description provided.

Prior to this commit the result of Invoke-WebRequest to verify that
a PowerShell module page can be hit while updating metadata.
Prior to this commit the versioning for the built Puppet module included
the fourth digit as is often included in PowerShell module versions.

Puppet tooling does not support four-digit versions.

This commit adds a new private function, Get-PuppetModuleVersion, which
can be used to translate a valid PowerShell module version into a valid
Puppet module version.

It does so by using the prerelease convention, mapping the fourth-digit
of a PowerShell module version to the first digit of the prerelease tag.

It further adds the ability to distinguish between rebuilt versions of
an output module where the source is the same but the output is different
because the builder was updated to fix a bug in type generation.

This means that the Puppet module version for a PowerShell module will
look like these examples:

- 1.2.3   becomes 1.2.3-0-0
- 1.2.3.4 becomes 1.2.3-4-0
- 2.3.21  becomes 2.3.21-0-0, if rereleased it is then 2.3.21-0-1

This keeps the versions human-readable and mappable between the two
packaging standards and also makes version comparison logic on our
end easier.
This update adds a new hash to the puppetized module metadata,
which includes the guid, module author, name, and version.

This should provide a more directly discoverable set of info
about the upstream PowerShell module without having to look
around for the information.
@DavidS DavidS added the bug Something isn't working label Apr 23, 2020
@DavidS DavidS changed the title (MAINT) Update metadata generation Ensure Sensitive handling of PSCredentials; module version munging; DSC metadata in metadata.json Apr 23, 2020
@DavidS DavidS added the feature New feature or request label Apr 23, 2020
@sheenaajay sheenaajay merged commit af70ff8 into puppetlabs:master Apr 23, 2020
@michaeltlombardi michaeltlombardi deleted the maint/master/metadata branch September 16, 2020 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants