-
Notifications
You must be signed in to change notification settings - Fork 14
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
net-protocol gets removed with ruby 3.3.3 #26
Comments
I am encountering a similar issue with the
However, using the same Ruby version on Ubuntu 22.04 LTS, everything works without issues. Could you please provide more details about the exact error you are facing and which operating system you are using? This information will help in identifying whether the problem is with |
Following up on my previous comment, I manually added |
My reading of the problem is that running
In my case, it failed for me on an Ubuntu 22.04 LTS Github action runner. Are you sure your ruby 3.3.3 install on Ubuntu 22.04 had no gems installed already? |
I'm not sure why this is happend yet. It may be caused by RubyGems/Bundler or regression of installation script of Ruby package. I'll investigate that. |
We're hitting the same issue. In our case we do development with
When running:
Relevant
To confirm, development is indeed 3.3.3:
@jamalawd good hack 👍 This does indeed work in
|
I have the same issue and asked for a solution at Stackoverflow. Based on the comment of the user Alex, it seems to be a Ruby 3.3.3 issue |
Unfortunately adding it to the Gemfile.lock isn't viable on my end as I run updates too often. Had to revert to the previous version for it to work within my CI/CD system. Hopefully this gets fixed on one end or the other. Not critical for us as we don't use POP, just annoying. |
@rjhancock I found an alternative solution that worked for me. I deleted the rm ~/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/specifications/net-pop-0.1.2.gemspec |
I appreciate it but I'm also using the Docker image as well so unless they fix the docker image, I need to stick to my solution. |
I could reproduce this. This issue caused by regression of install script of Ruby package. I created backport request with fixed commits for Ruby 3.3.
If you use
Sorry to inconvenient experience for the latest stable vesion. Thanks. |
To cross-post a temporary workaround until Ruby 3.3.4 is released ruby/ruby#11006 (comment) Putting this in the Gemfile will work for all systems (including Heroku) # Needed until Ruby 3.3.4 is released https://github.com/ruby/ruby/pull/11006
gem 'net-pop', github: 'ruby/net-pop' |
While pointing at GitHub would resolve the install issue, it would mean (I think) that Dependabot checks would fail unless insecure-external-code-execution is set to allow. Was wondering if it would be possible to publish a 0.1.3 version of this gem, seems there are a couple of commits not in 0.1.2, and then people could update to use that version via bundler without pointing at the GitHub repo? |
* fix for ruby/net-pop#26 (comment) * fix for github ruby installer using the wrong Gemfile. could also fix the invalid cached bundle
* develop: fix for ruby/net-pop#26 (comment) (#546)
we had the same issue when updating our Rails version 7.1.3.4 app to Ruby 3.3.3 and deploying to Heroku-22 , this seems to help |
issue with net-pop and ruby 3.3.3 - ruby/net-pop#26
Seems like resolved in 3.3.4: https://github.com/ruby/ruby/releases/tag/v3_3_4 |
A few extra steps that fixed this issue for me in an existing rails application
|
Like @cody-elhard mentioned, running |
* Remove test codes * Add `Gemfile` and `Gemfile.lock` * Create setup-ruby.yml * fixup! Create setup-ruby.yml * Install net-pop from `ruby/net-pop` ref. ruby/net-pop#26 (comment) * remove branch name (main) * Delete delete-branch-cache.yml
Somehow running bundle install on macos is removing this, which breaks the installation. See: ruby/net-pop#26
Is this a problem with Ruby 3.4.0.preview1?
My gemfile lock:
|
3.4.0-preview1 is old version today. If you want to test development version, use "head" instead of "3.4.0-preview1". |
No. 3.4.0-preview2 has correct gemspec. see
|
thanks for the response. I’ll check if there’s something else that can be wrong with my setup |
I'm not sure if this is a problem with net-pop, net-protocol, or some other gem, but after installing ruby 3.3.3, when i do
bundle update
,net-protocol
gets removed from gemfile and breaks deploysThe text was updated successfully, but these errors were encountered: