When setting up Pants with a pants.toml file that specifies the version in pants.toml as pants_version = "2.17",
[GLOBAL]
pants_version = "2.17"
the following error message is generated:
$ pants tailor ::
Failed to fetch https://binaries.pantsbuild.org/tags/pantsbuild.pants/release_2.17: [22] HTTP response code said error (The requested URL returned error: 404)
Install failed: list indices must be integers or slices, not str
More information can be found in the log at: /Users/xxx/Library/Caches/nce/cf6c1988edaa5d40bbf385ae79a75e6d2abba937217d1b672c71eaf0ea495bcd/bindings/logs/configure.log
Error: Failed to establish atomic directory /Users/xxx/Library/Caches/nce/cf6c1988edaa5d40bbf385ae79a75e6d2abba937217d1b672c71eaf0ea495bcd/locks/configure-e2013035cf3930334d2e37fdaa72d908ce286bd0690a7afa8f80b214f3084c3d. Population of work directory failed: Boot binding command failed: exit status: 1
Issue:
The error message does not clearly indicate that the version number format is incorrect or suggest a resolution.
Solution:
Specifying the version number in x.y.z format, such as 2.17.0, resolves the issue. A more informative error message, guiding the user to use the correct version format, would be helpful.
When setting up Pants with a
pants.toml
file that specifies the version inpants.toml
as pants_version = "2.17",the following error message is generated:
Issue: The error message does not clearly indicate that the version number format is incorrect or suggest a resolution.
Solution: Specifying the version number in
x.y.z
format, such as2.17.0
, resolves the issue. A more informative error message, guiding the user to use the correct version format, would be helpful.