Stable-only: Pin semantic_puppet in CentOS 8
semantic_puppet >= 1.1.0 requires ruby >= 2.7.0 so can no longer be installed in ruby 2.6.0 in CentOS 8. Closes-Bug: #2016056 Change-Id: Iadff3de808a012c42c2c9a7edb24385c64c7ae78
This commit is contained in:
parent
757b0e819d
commit
e3ababb649
@ -28,12 +28,17 @@ print_header 'Start (install_modules.sh)'
|
|||||||
print_header 'Install r10k'
|
print_header 'Install r10k'
|
||||||
|
|
||||||
if [ "${OS_NAME_VERS}" == "centos8" ]; then
|
if [ "${OS_NAME_VERS}" == "centos8" ]; then
|
||||||
# faraday-net_http >= 3.0.0 supports only Ruby 2.6.0 but CentOS 8 provides
|
# faraday-net_http >= 3.0.0 requires Ruby >= 2.6.0
|
||||||
# Ruby 2.5.0
|
# semantic_puppet >= 1.1.0 requires Ruby >= 2.7.0
|
||||||
$GEM_INSTALL_CMD faraday-net_http -v '< 3.0.0'
|
cat <<EOF >/tmp/Gemfile
|
||||||
# Pin a few more packages to avoid updating faraday-net_http
|
source 'http://rubygems.org'
|
||||||
$GEM_INSTALL_CMD faraday -v '< 2.0.0'
|
|
||||||
$GEM_INSTALL_CMD r10k -v '< 3.15.0'
|
gem 'faraday-net_http', '<3.0.0'
|
||||||
|
gem 'faraday', '<2.0.0'
|
||||||
|
gem 'semantic_puppet', '<1.1.0'
|
||||||
|
gem 'r10k', '<3.15.0'
|
||||||
|
EOF
|
||||||
|
$GEM_INSTALL_CMD -g /tmp/Gemfile
|
||||||
else
|
else
|
||||||
$GEM_INSTALL_CMD r10k
|
$GEM_INSTALL_CMD r10k
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user