foodcoops / foodsoft

Web-based software to manage a non-profit food coop (product catalog, ordering, accounting, job scheduling).
https://foodcoops.net/
Other
326 stars 146 forks source link

Suppress net protocol errors #1015

Closed kidhab closed 1 year ago

kidhab commented 1 year ago

Adding these gems suppresses the following errors (see also https://github.com/ruby/net-imap/issues/16):


/2.7.8/lib/ruby/2.7.0/net/protocol.rb:66: warning: already initialized constant Net::ProtocRetryError
/2.7.8/lib/ruby/gems/2.7.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:68: warning: previous definition of ProtocRetryError was here
/2.7.8/lib/ruby/2.7.0/net/protocol.rb:206: warning: already initialized constant Net::BufferedIO::BUFSIZE
/2.7.8/lib/ruby/gems/2.7.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:214: warning: previous definition of BUFSIZE was here
/2.7.8/lib/ruby/2.7.0/net/protocol.rb:503: warning: already initialized constant Net::NetPrivate::Socket
/2.7.8/lib/ruby/gems/2.7.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:541: warning: previous definition of Socket was here
yksflip commented 1 year ago

great you've found a way to supress the error messages!

The ci pipeline fails with this error ...

You have already activated uri 0.10.0.2, but your Gemfile requires uri 0.12.1. Since uri is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports uri as a default gem. (Gem::LoadError)

have you tried updating the bundler verison already?

kidhab commented 1 year ago

I set the exact version to avoid the CI error. Good enough to merge?

yksflip commented 1 year ago

great kidhab! thank you! I think the failed test is somehow flaky, I've opened already a issue to tackle that. #1006 LGTM