Closed CAMOBAP closed 4 years ago
@ronaldtse @abunashir please let me know if you have any idea about roots of the problem
@ribose-jeffreylau was able to get around this issue with the combination of:
See this: https://gitlab.com/calconnect/tc-localization/csd-transcription-systems/-/blob/master/.gitlab-ci.yml
The make hack-update-metanorma
target is this:
.PHONY: hack-update-metanorma
hack-update-metanorma:
for u in "https://github.com/metanorma/metanorma-iso" \
"https://github.com/metanorma/metanorma-standoc" \
"https://github.com/metanorma/isodoc"; \
do \
reponame="$${u##*/}"; \
git clone --depth 1 "$$u" && \
pushd "$$reponame" && \
gem build "$${reponame}" && \
gem install *gem; \
set -- *gem; \
gemversion="$${1%.gem}" ; \
gemversion="$${gemversion#$${reponame}-}" ; \
echo reponame is $${reponame} ; \
echo gemversion is "$${gemversion}" ; \
sed -i.bkup -e 's/\('"$${reponame}"'\) ([0-9].*)/\1 ('"$${gemversion}"')/g' /setup/Gemfile.lock ; \
popd ; \
done
Thanks for the information, but bundle add ...
in comparison with solution above looks much cleaner. I will develop this solution to support github gems
Intro
Recently I have fixed a couple of issues related to problems with installation gems from host Gemfile:
The fix by itself is in those lines: https://github.com/metanorma/mn-samples-mpfa/blob/master/.github/workflows/docker.yml#L41-L45
Long story short: in a docker container, only
bundler add
works for some reason,bundle install
doesn't workExpected result
Simple
bundle install
should work for host's GemfileProposed solution
To be honest, IDK what causing of these problems, so I don't have a solution at this moment, I still feeling a lack of understanding the root of the issue, but this is something clearly related to bundler logic
Mode investigation details in attached tickets