Skip to content

Commit

Permalink
build: Replace dotenv with dotenvy
Browse files Browse the repository at this point in the history
Replace the unmaintained crate `dotenv` with the maintained fork `dotenvy`.

Fixes #2350
  • Loading branch information
szokeasaurusrex committed Jan 21, 2025
1 parent b26e0f2 commit 71013e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ clap_complete = "4.4.3"
console = "0.15.5"
curl = { version = "0.4.46", features = ["static-curl", "static-ssl"] }
dirs = "4.0.0"
dotenv = "0.15.0"
dotenvy = "0.15.7"
elementtree = "1.2.3"
flate2 = { version = "1.0.25", default-features = false, features = [
"rust_backend",
Expand Down
6 changes: 3 additions & 3 deletions src/utils/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::process;

use anyhow::{Error, Result};
use console::style;
use dotenv::Result as DotenvResult;
use dotenvy::Result as DotenvResult;
use lazy_static::lazy_static;
use regex::{Captures, Regex};

Expand Down Expand Up @@ -139,8 +139,8 @@ pub fn load_dotenv() -> DotenvResult<()> {
}

match env::var("SENTRY_DOTENV_PATH") {
Ok(path) => dotenv::from_path(path),
Err(_) => dotenv::dotenv().map(|_| ()),
Ok(path) => dotenvy::from_path(path),
Err(_) => dotenvy::dotenv().map(|_| ()),
}
.map_or_else(
|error| {
Expand Down

0 comments on commit 71013e0

Please sign in to comment.