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

Ruby 3.3.3 issue: net-pop #107

Closed
rubys opened this issue Jun 24, 2024 · 2 comments · Fixed by #108
Closed

Ruby 3.3.3 issue: net-pop #107

rubys opened this issue Jun 24, 2024 · 2 comments · Fixed by #108

Comments

@rubys
Copy link
Collaborator

rubys commented Jun 24, 2024

See: https://stackoverflow.com/questions/78617432/strange-bundle-update-issue-disappearing-net-pop-0-1-2-dependency

@rubys
Copy link
Collaborator Author

rubys commented Jun 24, 2024

Workaround:

diff --git a/Dockerfile b/Dockerfile
index eba01ff..5978eec 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,7 +23,8 @@ RUN apt-get update -qq && \
 
 # Install application gems
 COPY Gemfile Gemfile.lock ./
-RUN bundle install && \
+RUN sed -i "/net-pop (0.1.2)/a\      net-protocol" Gemfile.lock && \
+    bundle install && \
     rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
     bundle exec bootsnap precompile --gemfile

@rubys
Copy link
Collaborator Author

rubys commented Jun 24, 2024

Test to see if this problem affects your application:

ruby -r bundler -e 'p Bundler::LockfileParser.new(Bundler.read_file("Gemfile.lock")).specs.find {|spec| spec.name == "net-pop"}&.dependencies&.empty?'

If the result is nil or false you are OK. If the result is true, the bug affects you and will prevent successful deployment.

@rubys rubys linked a pull request Jun 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant