flagon
flagon copied to clipboard
Ruby versioning issue in Site build
It looks like there is an issue in site dependencies that coerce Ruby 2.5 to run which breaks build. May be issue in RUBY_VERSION assignment. See below:
` => ERROR [ 4/12] RUN bundle install 8.4s
[ 4/12] RUN bundle install:
#0 4.336 Fetching gem metadata from https://rubygems.org/............
#0 8.006 Fetching gem metadata from https://rubygems.org/.
#0 8.039 Resolving dependencies...
#0 8.232 public_suffix-5.0.0 requires ruby version >= 2.6, which is incompatible with the #0 8.232 current version, ruby 2.5.1p57
Dockerfile:7
5 | COPY Gemfile* /tmp/
6 | WORKDIR /tmp
7 | >>> RUN bundle install
8 |
9 | ENV app /app
ERROR: failed to solve: process "/bin/sh -c bundle install" did not complete successfully: exit code: 5 (base) jpoore@MacBook-Pro-2 site % ` Active version of Ruby I'm running (via rbenv):
(base) jpoore@MacBook-Pro-2 site % ruby -v ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
Confirmed that 2.5 isn't even installed on computer...
Bug is reproduceable on 'Master" and was introduced with commit: https://github.com/apache/flagon/commit/0eded9e45f978f5a42af8ec00f278d298ad5c48e
A follow up could be introducing a test [ ex: via GH Actions ] to verify that future changes won't get merged and break ( at least in the same way ).