Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

yarn_deps rule fails attempting to make a request but yarn install --offline works fine #92

Open
err0r500 opened this issue Jan 7, 2022 · 1 comment

Comments

@err0r500
Copy link

err0r500 commented Jan 7, 2022

Hello,
I try to use the yarn_deps rule but when I do a plz run @pleasings//js/yarn_deps it fails with a :

Build stopped after 2.93s. 1 target failed:
    ///pleasings//js/yarn_deps:yarn_deps
Error building target ///pleasings//js/yarn_deps:yarn_deps: exit status 1
yarn install v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
error Can't make a request in offline mode ("https://registry.yarnpkg.com/ssri/-/ssri-6.0.2.tgz")
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this comman

However, I can do a yarn install --offline without problem...

Maybe it's because the yarn-offline-mirror path of the rule is used instead of my system ones (blind guess). I don't know how to solve this though (or I simply just don't get how it's supposed to be used)

Best,

@err0r500
Copy link
Author

err0r500 commented Jan 8, 2022

Looks like I've got something working with the v1.0.0 (v1.10 & master throw the error above).

Also it takes the stdin as input so something like cat yarn.lock | plz run @pleasings//js/yarn_deps works

I think I'm too new to this to figure out this kind of subtleties easily

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant