-
-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:pantsbuild/pants into file-overrides
[ci skip-rust] [ci skip-build-wheels]
- Loading branch information
Showing
131 changed files
with
1,873 additions
and
1,021 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 0 additions & 129 deletions
129
build-support/migration-support/rename_targets_pants28.py
This file was deleted.
Oops, something went wrong.
87 changes: 0 additions & 87 deletions
87
build-support/migration-support/rename_targets_pants28_test.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.8.0.dev4 | ||
2.8.0.dev5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/python/pants/backend/docker/util_rules/docker_build_args.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from __future__ import annotations | ||
|
||
from dataclasses import dataclass | ||
|
||
from pants.backend.docker.subsystems.docker_options import DockerOptions | ||
from pants.backend.docker.target_types import DockerBuildArgsField | ||
from pants.backend.docker.utils import KeyValueSequenceUtil | ||
from pants.engine.rules import collect_rules, rule | ||
from pants.engine.target import Target | ||
|
||
|
||
class DockerBuildArgs(KeyValueSequenceUtil): | ||
pass | ||
|
||
|
||
@dataclass(frozen=True) | ||
class DockerBuildArgsRequest: | ||
target: Target | ||
|
||
|
||
@rule | ||
async def docker_build_args( | ||
request: DockerBuildArgsRequest, docker_options: DockerOptions | ||
) -> DockerBuildArgs: | ||
return DockerBuildArgs.from_strings( | ||
*docker_options.build_args, | ||
*(request.target.get(DockerBuildArgsField).value or ()), | ||
) | ||
|
||
|
||
def rules(): | ||
return collect_rules() |
Oops, something went wrong.