Skip to content
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

Make versions match SemVer pattern #232

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

reidmv
Copy link
Contributor

@reidmv reidmv commented Jan 18, 2022

All PE version downloads need to match the x.y.z format. This commit
changes the type specifier to require this format.

This is especially useful to help guide people to the right parameters
if they specify a version like "2022.4" instead of "2022.4.0".

@reidmv reidmv requested a review from a team as a code owner January 18, 2022 19:01
@reidmv
Copy link
Contributor Author

reidmv commented Jan 18, 2022

Ooh, wait a moment... we can't do quite this. We need to accomodate development builds too. So, the Regex needs to be adjusted for that.

All PE version downloads need to match the x.y.z format. This commit
changes the type specifier to require this format.

This is especially useful to help guide people to the right parameters
if they specify a version like "2022.4" instead of "2022.4.0".
@reidmv reidmv force-pushed the require-semver-version branch from 98cbbb2 to c239bc7 Compare March 1, 2022 17:43
@reidmv reidmv requested review from a team and removed request for a team March 4, 2022 18:07
@@ -26,7 +26,7 @@

# Common Configuration
String $console_password,
String $version = '2019.8.8',
Peadm::Pe_version $version = '2019.8.8',
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be 2019.8.10 or 2021.5.0. Speaking of which, can we make the default auto-updating somehow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should ideally make auto-updating a thing, yeah. That's probably a piece of work by itself, and would ideally include/encompass plan parameter version defaults, CI job version defaults, and validation functions.

@reidmv reidmv merged commit 439c0c6 into puppetlabs:main Mar 4, 2022
@reidmv reidmv deleted the require-semver-version branch March 4, 2022 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants