Bug 1870161 - Add newlines between workspace dependencies when syncing. r=rjl
Differential Revision: https://phabricator.services.mozilla.com/D196499 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c834569c45
Коммит
7d95fa0aa7
|
@ -236,10 +236,10 @@ def regen_toml_files(command_context, workspace):
|
|||
|
||||
workspace_members = members
|
||||
workspace_patches = ""
|
||||
workspace_dependencies = ""
|
||||
workspace_dependencies = []
|
||||
|
||||
for dep in mc_workspace.workspace_deps:
|
||||
workspace_dependencies += inline_encoded_toml(dep, mc_workspace.workspace_deps[dep])
|
||||
workspace_dependencies.append(inline_encoded_toml(dep, mc_workspace.workspace_deps[dep]))
|
||||
|
||||
# Patch emission
|
||||
for section in patches:
|
||||
|
@ -261,7 +261,7 @@ def regen_toml_files(command_context, workspace):
|
|||
with open(comm_workspace_toml, "w") as cargo:
|
||||
cargo_toml = (
|
||||
workspace_template.format(
|
||||
dependencies=workspace_dependencies,
|
||||
dependencies="\n".join(workspace_dependencies),
|
||||
members=workspace_members,
|
||||
features=tomlkit.dumps(features),
|
||||
patches=workspace_patches,
|
||||
|
|
Загрузка…
Ссылка в новой задаче