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

uninitialized constant Rendezvous::StringIO #1264

Open
phortx opened this issue Aug 2, 2022 · 2 comments
Open

uninitialized constant Rendezvous::StringIO #1264

phortx opened this issue Aug 2, 2022 · 2 comments

Comments

@phortx
Copy link

phortx commented Aug 2, 2022

-----> Launching...
 !     Release command declared: this new release will not be available until the command succeeds.
       Released v390
       [...] deployed to Heroku
/root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rendezvous-0.1.3/lib/rendezvous.rb:44:in `start': uninitialized constant Rendezvous::StringIO (NameError)
      if input.is_a?(StringIO)
                     ^^^^^^^^
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rendezvous-0.1.3/lib/rendezvous.rb:28:in `start'
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/dpl-heroku-1.10.16/lib/dpl/provider/heroku/generic.rb:86:in `run'
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/dpl-1.10.16/lib/dpl/provider.rb:205:in `block (2 levels) in deploy'
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/dpl-1.10.16/lib/dpl/cli.rb:41:in `fold'
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/dpl-1.10.16/lib/dpl/provider.rb:205:in `block in deploy'
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/dpl-1.10.16/lib/dpl/provider.rb:201:in `each'
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/dpl-1.10.16/lib/dpl/provider.rb:201:in `deploy'
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/dpl-1.10.16/lib/dpl/cli.rb:32:in `run'
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/dpl-1.10.16/lib/dpl/cli.rb:7:in `run'
	from /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/dpl-1.10.16/bin/dpl:5:in `<top (required)>'
	from /root/.asdf/installs/ruby/3.1.2/bin/dpl:25:in `load'
	from /root/.asdf/installs/ruby/3.1.2/bin/dpl:25:in `<main>'

Also happens without release command. It seems like it trys to parse the url from the heroku result and rendezvous checks for StringIO without explicit requiring StringIO

Any idea?

@phortx
Copy link
Author

phortx commented Aug 4, 2022

I've worked around by adding

RUN sed -i '1s/^/require "stringio"\n/' /root/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rendezvous-0.1.3/lib/rendezvous.rb

to my GitLab CI Docker file which is used for the deployment. However, this feels really dirty :D

@ovidiuanca
Copy link

Had the same issue and fixed it after installing gem faraday after installing dpl.

In Gitlab CI:

script:
    - gem install dpl
    - gem install faraday -v 1.8.0
    - dpl --provider=heroku --run ...

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

No branches or pull requests

2 participants