pact-foundation / pact-ruby-cli

Amalgamated Pact Ruby CLI
https://pact.io
MIT License
12 stars 15 forks source link

Build fixes post update to alpine:3.17.3 #99

Closed YOU54F closed 1 year ago

YOU54F commented 1 year ago

Hey hey,

This commit failed to build

https://github.com/pact-foundation/pact-ruby-cli/commit/144df18c22f8c0122b5d8c5c614b2bd07fd06e16

ERROR: unable to select packages:
  ruby-3.1.4-r0:
    breaks: world[ruby=3.1.3-r0]
            world[ruby-bigdecimal=3.1.3-r0]
            world[ruby-io-console=3.1.3-r0]
    satisfies: ruby-bundler-2.3.26-r0[ruby]
The command '/bin/sh -c apk update   && apk add ruby=3.1.3-r0              ruby-bigdecimal=3.1.3-r0              ruby-bundler=2.3.26-r0              ruby-io-console=3.1.3-r0              ca-certificates=20220614-r4              libressl              less              git   && apk add --virtual "build-dependencies"              build-base=0.5-r3              ruby-dev=3.1.3-r0              libressl-dev              ruby-rdoc=3.1.3-r0   && bundler -v   && bundle config build.nokogiri --use-system-libraries   && bundle config git.allow_insecure true   && gem update --system   && gem install json -v "~>2.3"   && gem cleanup   && apk del build-dependencies   && rm -rf /usr/lib/ruby/gems/*/cache/*             /var/cache/apk/*             /tmp/*             /var/tmp/*' returned a non-zero code: 2
Unable to find image 'pactfoundation/pact-cli:latest' locally
latest: Pulling from pactfoundation/pact-cli
63b65145d645: Already exists
e322a82ef6de: Pulling fs layer

Fixing that error throws up

Bundler 2.4.12 is running, but your lockfile was generated with 2.3.26. Installing Bundler 2.3.26 and restarting using that version.

ERROR: unable to select packages:
  ruby-bundler-2.3.26-r0:
    breaks: world[ruby-bundler=2.4.12-r0]
The command '/bin/sh -c apk update   && apk add ruby=3.1.4-r0              ruby-bigdecimal=3.1.4-r0              ruby-bundler=2.4.12-r0              ruby-io-console=3.1.4-r0              ca-certificates=20220614-r4              libressl              less              git   && apk add --virtual "build-dependencies"              build-base=0.5-r3              ruby-dev=3.1.4-r0              libressl-dev              ruby-rdoc=3.1.4-r0   && bundler -v   && bundle config build.nokogiri --use-system-libraries   && bundle config git.allow_insecure true   && gem update --system   && gem install json -v "~>2.3"   && gem cleanup   && apk del build-dependencies   && rm -rf /usr/lib/ruby/gems/*/cache/*             /var/cache/apk/*             /tmp/*             /var/tmp/*' returned a non-zero code: 1
Unable to find image 'pactfoundation/pact-cli:latest' locally

Removing the ruby-bundler=2.3.26-r0 and replacing with gem install bundler -v 2.4.12

works and the package actually builds, without just pulling down the latest build from dockerhub and continuing on with the integration tests