Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#316] Upgrade Ruby version #419

Merged
merged 6 commits into from
Jul 5, 2023
Merged

Conversation

andyduong1920
Copy link
Member

@andyduong1920 andyduong1920 commented Jul 3, 2023

close #316

What happened 👀

Upgrade Ruby to 3.2.2

Insight 📝

Proof Of Work 📹

The CI is passed

@andyduong1920 andyduong1920 self-assigned this Jul 3, 2023
docker-api (2.2.0)
excon (>= 0.47.0)
multi_json
excon (0.90.0)
excon (0.100.0)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to upgrade the excon to fix the issue on https://github.com/nimblehq/rails-templates/actions/runs/5441234668/jobs/9894962870

An error occurred in a `before(:suite)` hook.
Failure/Error: Docker::Container.get(container_id.strip)
ArgumentError:
  The `:host` parameter should not be set for `unix://` connections.
  When supplying a `unix://` URI, it should start with `unix:/` or `unix:///`.

Base automatically changed from feature/upgrade-rails-version to develop July 3, 2023 06:47
@andyduong1920 andyduong1920 force-pushed the feature/upgrade-ruby-version branch from d15cfd9 to c7e95b6 Compare July 3, 2023 06:51
@@ -38,7 +38,8 @@ RUN apt-get update -qq && \
ADD https://dl.yarnpkg.com/debian/pubkey.gpg /tmp/yarn-pubkey.gpg
RUN apt-key add /tmp/yarn-pubkey.gpg && rm /tmp/yarn-pubkey.gpg && \
echo "deb http://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \
curl -sL https://deb.nodesource.com/setup_"$NODE_SOURCE_VERSION".x | bash - && \
echo 'Package: nodejs\nPin: origin deb.nodesource.com\nPin-Priority: 600' > /etc/apt/preferences.d/nodesource && \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Ruby-3.2.2 slim is based on the Debian-12, and Debian 12 provides a newer Node.js package 18.13.0 from the deb.debian.org repository, so to override the Node.js version, we have to pin the deb.nodesource.com first (source)

@andyduong1920 andyduong1920 changed the title [#383] Upgrade Ruby version [#316] Upgrade Ruby version Jul 3, 2023
@andyduong1920 andyduong1920 marked this pull request as ready for review July 3, 2023 07:09
@olivierobert
Copy link
Contributor

So in the end, not moving to using https://github.com/bkeepers/dotenv?

@malparty
Copy link
Member

malparty commented Jul 3, 2023

  • due to the ne

As this is a forked version with no guarantee for long-term support, I think it might still be preferable to move with DotEnv. In the meantime, this forked version seems preferable over the non-maintained original gem. 🤔

@andyduong1920
Copy link
Member Author

So in the end, not moving to using https://github.com/bkeepers/dotenv?

The Removing Figaro issue is still there @olivierobert #394, this PR just solve the #316 they are separate issue, the dotenv replacement seems take longer than the expectation. So to solve the #316 issue, we can go with the fork figaro version first.

@andyduong1920
Copy link
Member Author

andyduong1920 commented Jul 4, 2023

  • due to the ne

As this is a forked version with no guarantee for long-term support, I think it might still be preferable to move with DotEnv. In the meantime, this forked version seems preferable over the non-maintained original gem. 🤔

Yeah I added a comment in the Remove Figaro issue, we could replace Figaro with DotENV but I think that is not a small task, we have the draft PR for months already.

Btw, this PR is solving the #316 which is just upgrading the Ruby, this doesn't aim to solve the #394 ;) so there are two separate issues ;)

@malparty malparty added this to the 5.7.0 milestone Jul 5, 2023
@malparty malparty merged commit f7ca10c into develop Jul 5, 2023
@malparty malparty deleted the feature/upgrade-ruby-version branch July 5, 2023 04:02
@malparty malparty mentioned this pull request Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Ruby to 3.1.x
5 participants