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

Do not use tilde specifier for PUPPET_VERSION read from environment #988

Closed
wants to merge 1 commit into from

Conversation

dosas
Copy link
Contributor

@dosas dosas commented Oct 17, 2024

when specifing a specific version this version should be used

when specifing a specific version this version should be used
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

👎 on this because I don't see any good reason for this. IMHO you want both a lower and upper bound and ~> gives you that (most of the time).

At first when I saw the summary I thought you'd simplify it to something like:

gem 'puppet', ENV.fetch('PUPPET_VERSION', '~> 7.0')

That I could be open to since it gives complete control, but <= is just not the right way.

Also, it now breaks because this part doesn't work anymore:

- ruby: '2.7'
puppet: '7.0'
- ruby: '3.0'
puppet: '7.0'
- ruby: '3.2'
puppet: '8.0'

Suddenly ~> 8.0 turned into <= 8.0 which means you no longer get the latest 8.x but just 8.0 or worse, 7.x.

@ekohl
Copy link
Member

ekohl commented Nov 21, 2024

ping @dosas

@dosas dosas closed this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants