Skip to content

Commit 7748c90

Browse files
build: Replace dotenv with dotenvy (#2351)
Replace the unmaintained crate `dotenv` with the maintained fork `dotenvy`. Fixes #2350
1 parent b26e0f2 commit 7748c90

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ clap_complete = "4.4.3"
2828
console = "0.15.5"
2929
curl = { version = "0.4.46", features = ["static-curl", "static-ssl"] }
3030
dirs = "4.0.0"
31-
dotenv = "0.15.0"
31+
dotenvy = "0.15.7"
3232
elementtree = "1.2.3"
3333
flate2 = { version = "1.0.25", default-features = false, features = [
3434
"rust_backend",

src/utils/system.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::process;
55

66
use anyhow::{Error, Result};
77
use console::style;
8-
use dotenv::Result as DotenvResult;
8+
use dotenvy::Result as DotenvResult;
99
use lazy_static::lazy_static;
1010
use regex::{Captures, Regex};
1111

@@ -139,8 +139,8 @@ pub fn load_dotenv() -> DotenvResult<()> {
139139
}
140140

141141
match env::var("SENTRY_DOTENV_PATH") {
142-
Ok(path) => dotenv::from_path(path),
143-
Err(_) => dotenv::dotenv().map(|_| ()),
142+
Ok(path) => dotenvy::from_path(path),
143+
Err(_) => dotenvy::dotenv().map(|_| ()),
144144
}
145145
.map_or_else(
146146
|error| {

0 commit comments

Comments
 (0)