forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] jvm: fix default paths for tool lockfiles (pantsbuild#13822)
Fix how the `--TOOL-lockfile` option's default is set. It was set to a default of its location in the Pants repository and not the special string `<default>`. The special string should trigger using the resource for the default lockfile embedded in the Pants distribution. Pants will error if the user explicitly requests resolving the lockfile of a tool using the default lockfile. In the Pants repository itself, the `--TOOL-lockfile` options are set appropriately for their locations in the Pants repository (which are then consumed by `resource` targets). This PR only fixes the current broken behavior, preserving the status quo. [ci skip-rust]
- Loading branch information
Tom Dyas
authored
Dec 7, 2021
1 parent
2e14352
commit a3c93f0
Showing
7 changed files
with
57 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
python_sources(dependencies=[":resources"]) | ||
python_sources(dependencies=[":lockfile"]) | ||
|
||
python_tests(name="tests") | ||
|
||
resources(name="resources", sources=["*.lockfile.txt"]) | ||
resource(name="lockfile", source="google_java_format.default.lockfile.txt") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
python_sources(dependencies=[":lockfiles"]) | ||
python_sources(dependencies=[":lockfile"]) | ||
python_tests(name="tests", timeout=240) | ||
|
||
resources(name="lockfiles", sources=["*.lockfile.txt"]) | ||
resource(name="lockfile", source="junit.default.lockfile.txt") |
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