You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So in version pdk 3.0.0.0 if you specify older versions than 7 it can't find the gem (which I don't fully understand since the older ruby 2.5.x should allow the puppet 6 gem to be found still). Is it just because it's embedded ruby gem that it's using?
If that's the case that in 3.x release we can't use older puppet versions then you probably need to update your docs:
I'm okay with puppet 5, 6 not being bundled with the embedded ruby but I don't see reason they can't be installed like any other gem dependency for backwards compatibility?
The text was updated successfully, but these errors were encountered:
# me @ mypc in ~/git/puppet_module_msktutil on git:main x [17:29:31] C:130
$ pdk validate --puppet-version 6
pdk (ERROR): Unable to find a Puppet gem matching ~> 6.0.
# me @ mypc in ~/git/puppet_module_msktutil on git:main x [17:29:33] C:1
$ pdk validate --puppet-version 7
pdk (INFO): Using Ruby 2.7.8
pdk (INFO): Using Puppet 7.27.0
pdk (INFO): Running all available validators...
^C
Aborted!
# me @ mypc in ~/git/puppet_module_msktutil on git:main x [17:29:36] C:130
$ pdk validate --puppet-version 8
pdk (INFO): Using Ruby 3.2.2
pdk (INFO): Using Puppet 8.3.1
pdk (INFO): Running all available validators...
^C
Aborted!
threepistons
added a commit
to newcastleuniversity/puppet_module_msktutil
that referenced
this issue
Jan 22, 2024
So in version pdk 3.0.0.0 if you specify older versions than 7 it can't find the gem (which I don't fully understand since the older ruby 2.5.x should allow the puppet 6 gem to be found still). Is it just because it's embedded ruby gem that it's using?
If that's the case that in 3.x release we can't use older puppet versions then you probably need to update your docs:
https://www.puppet.com/docs/pdk/3.x/pdk_testing.html
pdk validate --puppet-version 5.5.12
I'm okay with puppet 5, 6 not being bundled with the embedded ruby but I don't see reason they can't be installed like any other gem dependency for backwards compatibility?
The text was updated successfully, but these errors were encountered: