BREAKING CHANGE: don't proxy source gems
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

by using our own repo as proxy, we were caching source gems.  if the
build fails, bundle would try to get the latest source version and fail.
This commit is contained in:
f 2023-02-04 13:02:45 -03:00
parent 3e5e5e4f92
commit c70e9afc3a

View file

@ -17,7 +17,7 @@ OS_VERSION="$(os-version)"
RUBY_GEMS="${OS_VERSION}.${ID}.gems.${SUTTY}"
cd cache/
gem fetch --source=https://${RUBY_GEMS} --platform=ruby --version ${GEM_VERSION} ${GEM_NAME}
gem fetch --source=https://rubygems.org --platform=ruby --version ${GEM_VERSION} ${GEM_NAME}
cd ../gems/
gem compile -V --prune --strip "strip --strip-unneeded" ${GEM_COMPILER_FLAGS} "../cache/${GEM_NAME}-${GEM_VERSION}.gem"