Closed danielparks closed 1 year ago
The suggested fix for this specific error given on Slack was rm -rf ~/.pdk/cache/ruby
.
Hope this helps.
rm -rf ~/.pdk/cache/ruby && pdk bundle install
worked. Thanks!
Given that the fix was PDK-specific, this seems like an actual issue with PDK rather than my configuration.
This is fixed by https://github.com/puppetlabs/pdk-templates/pull/507
Describe the Bug
When I create a new module and run
pdk bundle exec rake -T
I get an error that it cannot loadpuppet_blacksmith/rake_tasks
. Other commands that internally userake
are also broken in the same way, e.g.pdk test unit
.I haven’t spent much time working with Ruby in recent years, so this may be some sort of misconfiguration on my system. I have puppet-blacksmith 6.1.1 installed in Ruby 3.1.2 (I’m using rbenv), but I don’t think
pdk
uses that installation at all — it reports it’s using Ruby 2.7.7 which I do not have installed in rbenv.It does not appear that puppet-blacksmith is installed in PDK’s Ruby:
Expected Behavior
Standard commands run without error on a fresh install.
Steps to Reproduce
Environment