Skip to content

Commit

Permalink
Apply suggestions from Nicolas
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Trinquier <[email protected]>
  • Loading branch information
2 people authored and Quentin Santos committed Feb 8, 2024
1 parent a7173d2 commit a199ab0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kraken-build/src/kraken/std/cargo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,15 @@ def cargo_login(
*,
project: Project | None = None,
) -> CargoLoginTask:
"""Creates a task that the :func:`cargo_build` and :func:`cargo_publish`
tasks will depend on to login in the Cargo registries"""
"""Creates a task that will be added to the build and publish support groups
to login in the Cargo registries"""

project = project or Project.current()
cargo = CargoProject.get_or_create(project)
task = project.task("cargoLogin", CargoLoginTask, group="apply")
task.registries = Supplier.of_callable(lambda: list(cargo.registries.values()))
project.group(CARGO_BUILD_SUPPORT_GROUP_NAME).add(task)
project.group(CARGO_PUBLISH_SUPPORT_GROUP_NAME).add(task)

# We need to have the credentials providers set up by cargoSyncConfig
task.depends_on(":cargoSyncConfig")
Expand Down

0 comments on commit a199ab0

Please sign in to comment.