Skip to content

Commit d8067ee

Browse files
committed
Just going to rollback to the version of Config that doesn't have the always lower casing bug: rust-cli/config-rs#531
1 parent e478927 commit d8067ee

File tree

3 files changed

+40
-111
lines changed

3 files changed

+40
-111
lines changed

Cargo.lock

Lines changed: 38 additions & 101 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
@@ -18,7 +18,7 @@ serde_json = "1.0.127"
1818
meilisearch-sdk = "0.27.1"
1919
colored = "2.1.0"
2020
lazy_static = "1.5.0"
21-
config = "0.14.0"
21+
config = "0.13.4"
2222

2323
[dev-dependencies]
2424
pretty_assertions = "1"

src/bin/copy_configs_for_debugger.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,10 @@ fn main() {
4545

4646
// Only need to grab the pairs from the [env] secion of this file
4747
for pair in settings.get_table("env").unwrap().iter() {
48-
let mut key: String = pair.0.clone();
49-
// These need to be upper case, and the Config crate currently seems to have a bug which lowercases everything!
50-
// https://github.com/mehcode/config-rs/issues/531
51-
// TODO SWY: Keep track of the above bug and remove when fixed.
52-
if pair.0 == "database_url" || pair.0 == "sqlx_offline" {
53-
key = pair.0.to_uppercase();
54-
}
55-
5648
test_override_configs.push_str(
5749
format!(
5850
"{} = \"{}\"\n",
59-
key,
51+
pair.0,
6052
pair.1.to_owned().into_string().unwrap()
6153
)
6254
.as_str(),

0 commit comments

Comments
 (0)