pantsbuild / scie-pants

Protects your Pants from the elements.
https://www.pantsbuild.org/docs/installation
Apache License 2.0
18 stars 17 forks source link

Clarification Needed on Error Message for Incorrect `pants_version` Format #337

Closed Seaweed0112 closed 6 months ago

Seaweed0112 commented 6 months ago

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.