average-cpu-49873
08/12/2019, 6:04 PM<https://github.com/yarnpkg/yarn/releases/download/<version>/yarn-<version>.tar.gz>
, where the <version>
is specified in the Pants options like so?
binaries_baseurls: +[
'<https://binaries.pantsbuild.org>',
'<https://github.com/yarnpkg/yarn/releases/download>',
]
[yarnpkg-distribution]
version: v1.17.3
The root of the issue is that Pants is expecting a specific folder structure <https://github.com/yarnpkg/yarn/releases/download/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz>
, and I'm wondering if there is a way to circumvent that.gentle-wolf-58752
08/12/2019, 8:23 PMYarnpkgDistribution
similar to how we did for node
in https://github.com/pantsbuild/pants/commit/6739a81b6008274bfb4abd3436d9adb543a19e5a to permit it thoughaverage-cpu-49873
08/12/2019, 8:52 PMgentle-wolf-58752
08/12/2019, 8:57 PMbinaries
repo for the a version not currently supported and point to that in your pants.ini
)gentle-wolf-58752
08/12/2019, 8:58 PMyarn
side in a bit so I could be missing somethinggentle-wolf-58752
08/12/2019, 9:23 PMyarnpkg-distribution
in your pants.ini
?gentle-wolf-58752
08/12/2019, 9:32 PM1.17.3
there and saw things run as expected, same with a version I didn’t have installed previously (1.16.0)
in my `pants.ini`:
[yarnpkg-distribution]
version: v1.17.3
average-cpu-49873
08/12/2019, 9:46 PMbundle
21:44:31 [INFO] Attempting to fetch yarnpkg.tar.gz binary from: <https://binaries.pantsbuild.org/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz> ...
21:44:32 [INFO] Attempting to fetch yarnpkg.tar.gz binary from: <https://github.com/yarnpkg/yarn/releases/download/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz> ...
16:44:31 00:02 [install]
FAILURE: (u'Error resolving binary request BinaryRequest(supportdir=bin/yarnpkg, version=v1.17.3, name=yarnpkg, platform_dependent=True, external_url_generator=None, archiver=<pants.fs.archive.TarArchiver object at 0x10d388b90>): Failed to fetch yarnpkg.tar.gz binary from any source: (Failed to fetch binary from <https://binaries.pantsbuild.org/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz>: Fetch of <https://binaries.pantsbuild.org/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz> failed with status code 404, Failed to fetch binary from <https://github.com/yarnpkg/yarn/releases/download/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz>: Fetch of <https://github.com/yarnpkg/yarn/releases/download/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz> failed with status code 404)', BinaryNotFound(u'Failed to fetch yarnpkg.tar.gz binary from any source: (Failed to fetch binary from <https://binaries.pantsbuild.org/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz>: Fetch of <https://binaries.pantsbuild.org/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz> failed with status code 404, Failed to fetch binary from <https://github.com/yarnpkg/yarn/releases/download/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz>: Fetch of <https://github.com/yarnpkg/yarn/releases/download/bin/yarnpkg/mac/10.13/v1.17.3/yarnpkg.tar.gz> failed with status code 404)',))
I was at Pants v1.11.0, but I also tried at v1.18.0.dev0 and got the same error. I’m also setting the following config for node:
[node-distribution.bundle.node]
version: v12.7.0
package_manager: yarn
eslint_config: app/web/.eslintrc
gentle-wolf-58752
08/12/2019, 9:47 PMgentle-wolf-58752
08/12/2019, 11:07 PMaverage-cpu-49873
08/13/2019, 3:19 PM