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

Use Dir.pwd instead of ENV['PWD'] in Capistrano integration #848

Merged
merged 4 commits into from
May 30, 2022

Conversation

tomascco
Copy link
Contributor

I'm using a pretty different setup for my Deploy with Capistrano, which includes deploying from a dev container in rootless podman, using the Ruby on Whales guide, with some changes.

I don't know exactly why it happens, but when deploying ENV["PWD"] returns nil. I tinkered a little and it seems that Dir.pwd is more reliable.

@tombruijn tombruijn added the bug label May 30, 2022
@tombruijn tombruijn self-assigned this May 30, 2022
@tombruijn tombruijn self-requested a review May 30, 2022 07:38
Instead of mocking the `Dir.pwd` method, switch the current directory to
what the test expects it to be. This doesn't interfere with our internal
test system.
@tomascco
Copy link
Contributor Author

tomascco commented May 30, 2022

Thanks @tombruijn, is there anything else that I need to do to help?

@tombruijn
Copy link
Member

@tomascco No I think we're good. I was just waiting for the build to be green :)
Thanks for the PR!

@tombruijn tombruijn merged commit 7032dc4 into appsignal:main May 30, 2022
@tombruijn
Copy link
Member

@tomascco I've published the fix in version 3.0.27 of our Ruby gem.

@tomascco
Copy link
Contributor Author

Many thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants