From 6eca9c4270a7ffa6bf59c628f49b7e18ee71c746 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson <alexander.olofsson@liu.se> Date: Wed, 4 Dec 2024 11:22:03 +0100 Subject: [PATCH] Handle PDK 3.3.0 quirk with io-console --- puppet-module-pipeline.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/puppet-module-pipeline.yaml b/puppet-module-pipeline.yaml index 80e2e53..3b08c85 100644 --- a/puppet-module-pipeline.yaml +++ b/puppet-module-pipeline.yaml @@ -30,8 +30,19 @@ pdk-validate: touch Gemfile Gemfile.local + # For PDK 3.3.0 + if [ "$PDK_VERSION" == "3.3.0" ]; then + if [ "$PDK_RESOLVED_RUBY_VERSION" == "2.7.8" ]; then + echo "Locking io-console to 0.5.6" + sed -e '/"io-console"/d' -e "/'io-console'/d" -i Gemfile Gemfile.local + echo 'gem "io-console", "= 0.5.6"' >> Gemfile.local + else + echo "Locking io-console to 0.6.0" + sed -e '/"io-console"/d' -e "/'io-console'/d" -i Gemfile Gemfile.local + echo 'gem "io-console", "= 0.6.0"' >> Gemfile.local + fi # For PDK 3.2.0 (it can report as the unreleased 3.1.0) - if [ "$PDK_VERSION" == "3.1.0" ] || [ "$PDK_VERSION" == "3.2.0" ]; then + elif [ "$PDK_VERSION" == "3.1.0" ] || [ "$PDK_VERSION" == "3.2.0" ]; then if [ "$PDK_RESOLVED_RUBY_VERSION" == "2.7.8" ]; then echo "Locking racc to 1.4.16" sed -e '/"racc"/d' -e "/'racc'/d" -i Gemfile Gemfile.local -- GitLab