-
Notifications
You must be signed in to change notification settings - Fork 22
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
Gems installs broken since about 2.6.0.0 #43
Comments
Hello! Could you kindly build and test the image in this pr? This is something we are currently investigating. Installing build-essential does fix the issue but also bumps the size of the image higher than i'd like. |
@chelnak That sounds very promising. Unfortunately I do not know how to build and test an image from a pull request. Is there a standard process that I could follow to do that? |
@chelnak Working with @billglick, here's the steps to reproduce (and also to verify the workaround): https://github.com/andylytical/pdktest |
Thanks, I'll take a look. |
I think your issue might be pdk-templates here. I noticed that the module you use as an example is pinned to pdk-templates 2.5.0. There were some significant changes with gems between 2.5 and 2.6. After running Can you give this a try? |
I can confirm that updating an affected module to the latest PDK fixed this issue. However, it's still sad that backwards-compatibility is broken. So I've tried the latest puppet/pdk:nightly image, hoping that it would allow me to use older versions of PDK for the time being, but it fails with the same error. Is this image expected to contain the fix? It was build at around the same time PR #42 was merged, so I thought I should give it a try. :) |
So #42 really just updates the base image and ensures that we have some dependencies available. It sounds like you could just pull the 2.5 tag here though? |
Sure. :) I wanted to avoid that, so that it doesn't break when I'm actually upgrading my modules to PDK >= 2.6... but yes, it's a valid workaround. |
Yeah so I think this is a limitation of the docket container. You'd have to upgrade on a module by module basis. |
I confirmed this fixes the issue! @billglick do you agree? |
fixes the "pdk-validate" action ( as per puppetlabs/pdk-docker#43 ) bump actions/checkout@v3 (as per https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/ ) fixes for pdk validate
@chelnak Feel free to close this issue. |
Thank you 🙏 |
fixes the "pdk-validate" action ( as per puppetlabs/pdk-docker#43 ) bump actions/checkout@v3 (as per https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/ ) fixes for pdk validate
Describe the Bug
Starting around 2023-01-19 (presumably with PDK Docker image 2.6.0.0 ) the PDK docker image does not have
make
orgcc
packages and sogem install
fails (when pdk attempts to install dependencies).Expected Behavior
Prior to this we could
gem install
dependencies.Steps to Reproduce
TBD
Environment
Additional Context
We run into this when running the puppets-epic-show-theatre/action-pdk-validate GitHub action. We originally thought it was an issue with that action, but it seems to be due to a change of either the PDK and/or ubuntu-latest Docker images.
We are able to work around this by installing
build-essential
package group in the container and then the pdk validate succeeds.The text was updated successfully, but these errors were encountered: