Skip to content

Commit 32be707

Browse files
committed
ensure trailing newline in recipe conda_build_config.yaml
migrators keep rewriting conda_build_config.yaml with the only change being stripped newlines
1 parent 29d8c2d commit 32be707

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

conda_forge_tick/migrators/migration_yaml.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ def merge_migrator_cbc(migrator_yaml: str, conda_build_config_yaml: str):
108108
# if this is in a key we didn't migrate, add the line (or it is a space)
109109
elif current_cbc_key not in migrator_keys or line.isspace() or not line:
110110
outbound_cbc.append(line)
111+
if outbound_cbc and outbound_cbc[-1]:
112+
# ensure trailing newline
113+
outbound_cbc.append("")
111114
return "\n".join(outbound_cbc)
112115

113116

0 commit comments

Comments
 (0)