Skip to content

Commit b720681

Browse files
authored
fix(cargo-shuttle): warn when only lowercase shuttle.toml file exists (#2079)
1 parent bb39e68 commit b720681

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cargo-shuttle/src/config.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,14 @@ impl RequestContext {
184184
.unwrap_or(project_args.working_directory.clone());
185185

186186
trace!("looking for Shuttle.toml in {}", workspace_path.display());
187-
if workspace_path.join("shuttle.toml").exists() {
187+
188+
// check that the uppercase file does not exist so a false warning is not printed on case-insensitive file systems
189+
if !workspace_path.join("Shuttle.toml").exists()
190+
&& workspace_path.join("shuttle.toml").exists()
191+
{
188192
eprintln!("WARN: Lowercase 'shuttle.toml' detected, please use 'Shuttle.toml'")
189193
}
194+
190195
let local_manager = LocalConfigManager::new(workspace_path, "Shuttle.toml".to_string());
191196
let mut project = Config::new(local_manager);
192197
if !project.exists() {

0 commit comments

Comments
 (0)