Skip to content

Commit 07a959c

Browse files
committed
Ensure content separation for cargo's config.toml
The .cargo/config.toml file may exist for a project and the source content configuration that we append needs to have a newline separating it from the existing content. Signed-off-by: William Douglas <[email protected]>
1 parent e36a856 commit 07a959c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autospec/specfiles.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ def write_prep(self):
548548
if self.config.subdir:
549549
self._write_strip("pushd " + self.config.subdir)
550550
self._write_strip("mkdir -p .cargo")
551-
self._write_strip(f"echo '{self.config.cargo_vendors}' >> .cargo/config.toml")
551+
self._write_strip(f"echo '\n{self.config.cargo_vendors}' >> .cargo/config.toml")
552552
if self.config.subdir:
553553
self._write_strip("popd")
554554

0 commit comments

Comments
 (0)