travis-ci / dpl

Dpl (dee-pee-ell) is a deploy tool made for continuous deployment.
MIT License
1.29k stars 367 forks source link

uninitialized constant Dpl::Providers::Heroku::JSON (NameError) #1284

Open maiquelcraash opened 2 months ago

maiquelcraash commented 2 months ago

Getting uninitialized constant Dpl::Providers::Heroku::JSON (NameError) error at the "Authenticate deployment" step for the Heroku DPL. This happens only when using Ruby 3 + the latest DPL version (v2.0.3-beta.5 and v2.0.4-beta).

Not sure this is related, but it seems that the json gem was removed from this DPL.

Details:

dpl.1
Install deployment dependencies
Installing deployment dependencies
Installing gem dependencies: faraday (~> 1), netrc (~> 0.11.0), rendezvous (~> 0.1.3)
dpl.2

Authenticate deployment
Authenticating ... 

uninitialized constant Dpl::Providers::Heroku::JSON (NameError)
failed to deploy
arieltango commented 1 month ago

Same error here.

2.19s$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install faraday -v 1.8.0 before_deploy.2 4.37s$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install json before_deploy.3 1.59s$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install dpl before_deploy.4 1.11s$ echo 'require "json"' >> $(rvm $(travis_internal_ruby) --fuzzy do ruby -e 'puts Gem.bin_path("dpl", "dpl")') before_deploy.5 0.07s$ ruby -rjson -e "puts 'JSON library loaded successfully'" dpl_0 $ rvm use $(travis_internal_ruby) --fuzzy do ruby -S gem uninstall -aIx dpl dpl.1 2.00sInstall deployment dependencies dpl.2 1.00sAuthenticate deployment uninitialized constant Dpl::Providers::Heroku::JSON (NameError) failed to deploy

klausetgeton commented 1 month ago

Same error here

Bielka99 commented 1 week ago

Alguna solución?