This message was deleted.
# puppet-enterprise
s
This message was deleted.
d
@Craig Gumbley?
c
thinking party
It would be great if you could open an issue over at the pdk repo
And include your modules gemfile along with the dependencies in your metadata.json
You should only see an issue like this if you are including gems that haven’t been packaged with PDK
In general though I’d like to work out a way for people to be able to compile native gems if they wish
Afaik the vendored mingw doesn’t carry the required files for compilation
j
Good Morning @Craig Gumbley Thanks for the response... If you could point me to where I can open an issue for the PDK repo...I will gladly do so. As a side note, I have a lot of non control-repo modules which are mainly Heira data...Would love to be able to make that an option to help in configuring the pdk for a module... I feel like I have a ton of Gems in the Gemfile which are not necessary because of lack of functionality int he particular repository. I also want to request or get help in creating a Job in CD4PE for these kind of repos which perform the Hiera syntax validate which are outside the control-repo.
One more thing... you made an interesting note in requesting the metadata.json... Is there documentation on how that should relate to the Gemfile.,.. For this particular repo, after running PDK convert .. here are the last three lines of the metadata.json... "pdk-version": "2.6.1", "template-url": "pdk-default#1.18.1", "template-ref": "tags/1.18.1-0-g3d2e75c" I feel like this is a mix of the two version ... 1.18.1 was the old version and 2.6.1 is the one it is going to... Trying to understand if this is an issue or not.
c
oh yes that is odd
I would recommend updating PDK to the latest version
then running pdk update
We are a bit further on now
stick all the info you can in there and we can try to replicate for you
j
Thank you
c
Your message also prompted me to do some reading around mingw64 and how we could allow people to have the support of native gems on windows
quite a big topic as you can probably imagine but very interesting
j
Thank you for looking into it,
Hey Craig.... What are my options, such that even after upgrading to 2.7.1, pdk validate does not work because yet another Gem does not get successfully installed (rainbow this time). Even if I run gem install rainbow --version '2.2.2' and that successfully completes... when I run pdk validate, it complains that the bundler cannot install rainbow. Confusing... Yes. Do I look into standing up a linux vm and use the pdk there? or am I missing something?
c
Do you know what is requiring rainbow?
You can also access PDKs bundled with pdk bundle
So for a gem install you would do pdk bundle exec gem install …
You can also use that to see what gems are available
Did you get round to opening an issue? It would be really useful to see if your gemfile differs from the default one
j
Hi Craig... took a fresh copy of the repo and reran commands to ensure I did not do something stupid 😉 Opened https://github.com/puppetlabs/pdk/issues/1244 for this issue.
Is there any documentation on running pdk bundle exec gem commands... I apologize for my lack of experience with ruby and gems... but I do learn a whole lot every day.