Skip to content

Commit

Permalink
[internal] fix typos (pantsbuild#14032)
Browse files Browse the repository at this point in the history
[ci skip-rust]
  • Loading branch information
asherf authored Dec 30, 2021
1 parent 3b7afeb commit 74e1a03
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/python/pants/backend/docker/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class DockerBuildSecretsOptionField(
docker_build_option = "--secret"

def option_values(self, **kwargs) -> Iterator[str]:
# os.path.join() discards preceeding parts if encountering an abs path, e.g. if the secret
# os.path.join() discards preceding parts if encountering an abs path, e.g. if the secret
# `path` is an absolute path, the `buildroot` and `spec_path` will not be considered. Also,
# an empty path part is ignored.
for secret, path in (self.value or {}).items():
Expand Down Expand Up @@ -284,7 +284,7 @@ class DockerImageTarget(Target):
"By default, will use a Dockerfile from the same directory as the BUILD file this target "
"is defined in. Point at another file with the `source` field, or use the `instructions` "
"field to have the Dockerfile contents verbatim directly in the BUILD file.\n\n"
"Dependencies on upstream/base images defined by another `docker_image` are infered if "
"Dependencies on upstream/base images defined by another `docker_image` are inferred if "
"referenced by a build argument with a default value of the target address.\n\n"
+ dedent(
"""\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def test_shell_source_dependencies(rule_runner: RuleRunner) -> None:


def test_build_arg_defaults_from_dockerfile(rule_runner: RuleRunner) -> None:
# Test that only explicitly defined build args in the BUILD file or pants configuraiton use the
# Test that only explicitly defined build args in the BUILD file or pants configuration use the
# environment for its values.
rule_runner.write_files(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def run_dep_inference(

caplog.clear()

# All modes should be fine if the module is explictly declared as a requirement
# All modes should be fine if the module is explicitly declared as a requirement
rule_runner.write_files(
{
"src/python/BUILD": dedent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def traverse(*children) -> FrozenTrieNode:
new_node = node.find_child(child)
if not new_node:
coord = ".".join(children)
raise Exception(f"Could not find the package specifed by {coord}.")
raise Exception(f"Could not find the package specified by {coord}.")
node = new_node
return node

Expand Down

0 comments on commit 74e1a03

Please sign in to comment.