Skip to content

Commit 9088770

Browse files
committed
Copy license-file into package if outside of root.
1 parent ab33bc0 commit 9088770

File tree

7 files changed

+464
-227
lines changed

7 files changed

+464
-227
lines changed

src/cargo/core/package.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ impl Package {
203203
}
204204

205205
pub fn to_registry_toml(&self, config: &Config) -> CargoResult<String> {
206-
let manifest = self.manifest().original().prepare_for_publish(config)?;
206+
let manifest = self
207+
.manifest()
208+
.original()
209+
.prepare_for_publish(config, self.root())?;
207210
let toml = toml::to_string(&manifest)?;
208211
Ok(format!(
209212
"# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO\n\

0 commit comments

Comments
 (0)