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

Fix PDK 3.2.0 workarounds for older Puppet

parent 46bd9428
No related branches found
No related tags found
No related merge requests found
...@@ -32,13 +32,23 @@ pdk-validate: ...@@ -32,13 +32,23 @@ pdk-validate:
# For PDK 3.2.0 (it reports as the unreleased 3.1.0) # For PDK 3.2.0 (it reports as the unreleased 3.1.0)
if [ "$PDK_VERSION" == "3.1.0" ]; then if [ "$PDK_VERSION" == "3.1.0" ]; then
echo "Locking racc to 1.6.2" if [ "$PDK_RESOLVED_RUBY_VERSION" == "2.7.8" ]; then
sed -e '/"racc"/d' -e "/'racc'/d" -i Gemfile Gemfile.local echo "Locking racc to 1.4.16"
echo 'gem "racc", "= 1.6.2"' >> Gemfile.local 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" echo "Locking rexml to 3.2.5"
sed -e '/"rexml"/d' -e "/'rexml'/d" -i Gemfile Gemfile.local sed -e '/"rexml"/d' -e "/'rexml'/d" -i Gemfile Gemfile.local
echo 'gem "rexml", "= 3.2.5"' >> Gemfile.local echo 'gem "rexml", "= 3.2.5"' >> Gemfile.local
fi
# For PDK 3.0.1 # For PDK 3.0.1
elif [ "$PDK_VERSION" == "3.0.1" ]; then elif [ "$PDK_VERSION" == "3.0.1" ]; then
echo "Locking puppet_litmus to 1.2.1" 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