Skip to content
Snippets Groups Projects
Commit eaf9467f authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Merge branch 'pdk-fixes' into 'master'

Fix PDK 3.2.0 workarounds for older Puppet

See merge request puppet-infra/shared-ci-piplines!72
parents 326fc8f9 e79c4aad
No related branches found
No related tags found
No related merge requests found
......@@ -32,13 +32,23 @@ pdk-validate:
# For PDK 3.2.0 (it reports as the unreleased 3.1.0)
if [ "$PDK_VERSION" == "3.1.0" ]; then
echo "Locking racc to 1.6.2"
sed -e '/"racc"/d' -e "/'racc'/d" -i Gemfile Gemfile.local
echo 'gem "racc", "= 1.6.2"' >> Gemfile.local
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
echo 'gem "racc", "= 1.4.16"' >> Gemfile.local
echo "Locking rexml to 3.2.3.1"
sed -e '/"rexml"/d' -e "/'rexml'/d" -i Gemfile Gemfile.local
echo 'gem "rexml", "= 3.2.3.1"' >> Gemfile.local
else
echo "Locking racc to 1.6.2"
sed -e '/"racc"/d' -e "/'racc'/d" -i Gemfile Gemfile.local
echo 'gem "racc", "= 1.6.2"' >> Gemfile.local
echo "Locking rexml to 3.2.5"
sed -e '/"rexml"/d' -e "/'rexml'/d" -i Gemfile Gemfile.local
echo 'gem "rexml", "= 3.2.5"' >> Gemfile.local
echo "Locking rexml to 3.2.5"
sed -e '/"rexml"/d' -e "/'rexml'/d" -i Gemfile Gemfile.local
echo 'gem "rexml", "= 3.2.5"' >> Gemfile.local
fi
# For PDK 3.0.1
elif [ "$PDK_VERSION" == "3.0.1" ]; then
echo "Locking puppet_litmus to 1.2.1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment