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

DPL seems not compatible with ruby 3.2.0 #1268

Open
curzolapierre opened this issue Dec 29, 2022 · 2 comments
Open

DPL seems not compatible with ruby 3.2.0 #1268

curzolapierre opened this issue Dec 29, 2022 · 2 comments

Comments

@curzolapierre
Copy link

From the new ruby release (3.2.0), Dir.exists? and File.exists? have been removed.

So exists? method is not working anymore.

Example:

➜ dpl --provider=scalingo --app=$SCALINGO_APP_NAME --api-token=$SCALINGO_API_TOKEN --region=$SCALINGO_REGION --branch=refs/heads/master
Support for deployments to Scalingo is in **alpha**. Please see [Maturity Levels](https://github.com/travis-ci/dpl/#maturity-levels) for details.
$ timeout 60 ./scalingo keys-remove dpl_tmp_key
timeout: failed to run command './scalingo': No such file or directory
Failed to remove the ssh key.

From ruby doc File.exist? should be used instead.

@SleeplessByte
Copy link

It's also not compatible with 3.1.x. See #1234

@Mth0158
Copy link

Mth0158 commented Jan 3, 2024

Hi @curzolapierre & @SleeplessByte,
I had the same issue while upgrading to Ruby >= 3.1.x, since it's a small scale app, the fix was to change the Gitlab deployment to Scalingo by linking the Gitlab repo to Scalingo instead of using a deploy pipeline stage.
It will automatically add a new step in your pipeline as illustrated below:
image

You can find more information about it here: https://doc.scalingo.com/platform/deployment/deploy-with-gitlab

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

3 participants