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

chore(deps): replace dotenv with dotenvy #1187

Merged
merged 1 commit into from
Jan 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ base64 = "0.21"
bb8 = { version = "0.8", optional = true }
bincode = { version = "2.0.0-rc.2", features = ["serde"] }
bytes = "1"
dotenv = { version = "0.15", optional = true }
flagset = "0.4"
futures = { version = "0.3", features = ["alloc"] }
hdrs = { version = "0.2", optional = true, features = ["async_file"] }
Expand Down Expand Up @@ -156,7 +155,7 @@ uuid = { version = "1", features = ["serde", "v4"] }
[dev-dependencies]
cfg-if = "1"
criterion = { version = "0.4", features = ["async", "async_tokio"] }
dotenv = "0.15"
dotenvy = "0.15"
env_logger = "0.10"
itertools = "0.10"
opentelemetry = { version = "0.17", default-features = false, features = [
Expand Down
2 changes: 1 addition & 1 deletion benches/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub static TOKIO: Lazy<tokio::runtime::Runtime> =
fn bench_tracing_layer(c: &mut Criterion) {
let mut group = c.benchmark_group("tracing_layers");

let _ = dotenv::dotenv();
let _ = dotenvy::dotenv();
let op = Operator::from_env(Scheme::S3).expect("init operator must succeed");
let layered_op = Operator::from_env(Scheme::S3)
.expect("init operator must succeed")
Expand Down
2 changes: 1 addition & 1 deletion benches/ops/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async fn service(scheme: Scheme) -> Option<Operator> {
}

pub fn services() -> Vec<(&'static str, Option<Operator>)> {
let _ = dotenv::dotenv();
let _ = dotenvy::dotenv();

TOKIO.block_on(async {
vec![
Expand Down
2 changes: 1 addition & 1 deletion examples/tracing_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn main() -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
let root = span!(tracing::Level::INFO, "app_start", work_units = 2);
let _enter = root.enter();

let _ = dotenv::dotenv();
let _ = dotenvy::dotenv();
let op = Operator::from_env(Scheme::S3)
.expect("init operator must succeed")
.layer(TracingLayer);
Expand Down
2 changes: 1 addition & 1 deletion tests/behavior/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use sha2::Sha256;
/// - Else, returns a `None` to represent no valid config for operator.
pub fn init_service(scheme: Scheme, random_root: bool) -> Option<Operator> {
let _ = env_logger::builder().is_test(true).try_init();
let _ = dotenv::dotenv();
let _ = dotenvy::dotenv();

let prefix = format!("opendal_{}_", scheme);

Expand Down