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

Drop dotenv #70

Merged
merged 2 commits into from
Jun 17, 2024
Merged

Drop dotenv #70

merged 2 commits into from
Jun 17, 2024

Conversation

andrzejbisewski
Copy link
Contributor

@andrzejbisewski andrzejbisewski commented Mar 12, 2024

Right now, we can't upgrade dotenv because of a gem conflict. So, instead of just loosening the dependency, I decided to cut it out completely. That said, if dotenv is around, our app will happily load it up.

This aspec was previously brought up here

I don't know about what versions should it be/who should change it, so happy to hear how to do it

@@ -36,7 +36,7 @@ def run
private

def boot_system
Dotenv.load
Dotenv.load if defined?(Dotenv)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I see in dotenv change log Ruby >= 3.0 and Rails >= 6.1 are now required. Lock dotenv to ~> 2.0 if you are using an outdated Ruby or Rails version. is the most breaking change. There might be a lot of apps with older Rails. I think that other than that it will be safe to keep the dotenv dependency, but without specifying the version. Thanks to that we can avoid using if defined

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the most breaking change is if an app do not had dotenv as direct dependency, then dotenv will be removed durning upgrade of eventboss.

lock dotenv to ~> 2.0 if you are using an outdated Ruby or Rails version.

If an app uses Rails 6.1 then it won't be using the newest version of dotenv anyway, and official support for Rails 6.0 ended 9 months ago.

it will be safe to keep the dotenv dependency

Sure. I think it can be easier to push

@andrzejbisewski
Copy link
Contributor Author

I think i also need to conditionally require 'dotenv' 🤔

@andrzejbisewski andrzejbisewski requested a review from a team March 21, 2024 09:54
@seban seban requested review from a team, rapsad and air-forkbomb and removed request for a team March 26, 2024 08:39
@rapsad rapsad merged commit e51caa9 into master Jun 17, 2024
2 checks passed
@rapsad rapsad deleted the drop_dotenv branch June 17, 2024 09:44
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

Successfully merging this pull request may close these issues.

6 participants