diff options
| author | Remo Senekowitsch <remo@buenzli.dev> | 2025-09-23 15:26:06 +0200 |
|---|---|---|
| committer | Remo Senekowitsch <remo@buenzli.dev> | 2025-09-23 15:29:26 +0200 |
| commit | 95a597eb8236c5ab180ac38284a655533f83e715 (patch) | |
| tree | 5e0afc85aa2de1d1bc77041067fec612a42b97be | |
| parent | 2af9e89ba536fad01aa828b06e0ac2174bad0f6d (diff) | |
Fix workspace detection with windows line endings
Some cargo workspaces may contain windows line endings. Even if the
file is stored in a repo with unix line endings, users may have some
setting activated that automatically translates them to windows line
endings when working locally.
| -rw-r--r-- | src/init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.rs b/src/init.rs index 68011ed..16ea35e 100644 --- a/src/init.rs +++ b/src/init.rs @@ -74,7 +74,7 @@ pub fn init() -> Result<()> { let workspace_manifest_content = fs::read_to_string(&workspace_manifest) .with_context(|| format!("Failed to read the file {}", workspace_manifest.display()))?; - if !workspace_manifest_content.contains("[workspace]\n") + if !workspace_manifest_content.contains("[workspace]") && !workspace_manifest_content.contains("workspace.") { bail!( |
