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

Incompatible with Ruby >=3.2.0 #16

Open
Meantub opened this issue Dec 4, 2023 · 7 comments
Open

Incompatible with Ruby >=3.2.0 #16

Meantub opened this issue Dec 4, 2023 · 7 comments

Comments

@Meantub
Copy link

Meantub commented Dec 4, 2023

Ruby deprecated the File.exists? that the old dotenv version this package was using and it causes the plugin to not work. This repo is pretty stale so I fixed it in my fork if people need it, I'm not a Ruby developer so it might be wrong but it worked for me

https://github.com/Meantub/vagrant-env

@zekefarwell
Copy link

I just upgraded Vagrant and am also running into this issue. Any chance of a PR from @Meantub's fork getting merged?

@FrancoisClementKW
Copy link

FrancoisClementKW commented Nov 20, 2024

Ruby deprecated the File.exists? that the old dotenv version this package was using and it causes the plugin to not work. This repo is pretty stale so I fixed it in my fork if people need it, I'm not a Ruby developer so it might be wrong but it worked for me

https://github.com/Meantub/vagrant-env

Thanks for your work.

When I run vagrant plugin install vagrant-env, vagrant always install the source one…
How can I install your plugin instead of the source one?

@Meantub
Copy link
Author

Meantub commented Nov 20, 2024

@FrancoisClementKW You have to build my branch, then vagrant plugin install <.gem file>

@wolkenarchitekt
Copy link

@FrancoisClementKW You have to build my branch, then vagrant plugin install <.gem file>

What are the exact steps to build the forked plugin, for someone who has never manually build a vagrant plugin?

@FrancoisClementKW
Copy link

@FrancoisClementKW You have to build my branch, then vagrant plugin install <.gem file>

Thanks, but I'm not familiar with Ruby, and I don't have any tool to build a .gem file.
I eventually decided to use a yaml configuration file instead of a .env file.

@atoolchain
Copy link

atoolchain commented Nov 28, 2024

hey @FrancoisClementKW, @wolkenarchitekt & who else needs a little help
i have been able to install it, with some playing around with the https://github.com/Meantub/vagrant-env repo.
side note: i am not a ruby dude...

git clone https://github.com/Meantub/vagrant-env.git
cd ./vagrant-env
gem build vagrant-env.gemspec
vagrant plugin install ./vagrant-env-0.0.4.gem

maybe you have to uninstall the old 0.0.3 plugin first (i did)
worked for me :)

@Meantub
Copy link
Author

Meantub commented Dec 17, 2024

Yeah sorry I didn't respond, I also am not a ruby dev and only did it to fix my own problem a year ago so didn't remember either

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

5 participants