Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn offline cache is difficult to search #3200

Closed
amcgee opened this issue Apr 20, 2017 · 7 comments
Closed

Yarn offline cache is difficult to search #3200

amcgee opened this issue Apr 20, 2017 · 7 comments

Comments

@amcgee
Copy link

amcgee commented Apr 20, 2017

Do you want to request a feature or report a bug?

feature

What is the current behavior?
yarn cache ls is difficult to search. This makes it tough to confirm that a package exists in the local cache. For instance:

$ yarn cache ls | wc -l
  241

(requires manually looking for the package since yarn cache ls | grep <name> doesn't work - this is probably a separate bug.)

A workaround is to use an intermediate file and grep -

$ yarn cache ls > yarncache.txt
$ grep "immutable" yarncache.txt
  immutable                                               3.8.1        npm      https://registry.yarnpkg.com/immutable/-/immutable-3.8.1.tgz#200807f11ab0f72710ea485542de088075f68cd2

For local dependancies yarn list <name> does the trick, but this is not implemented for yarn cache ls

What is the expected behavior?

$ yarn cache ls immutable
  yarn cache v0.23.2
  Name        Version      Registry Resolved      
  immutable   3.8.1        npm      https://registry.yarnpkg.com/immutable/-/immutable-3.8.1.tgz#200807f11ab0f72710ea485542de088075f68cd2

Please mention your node.js, yarn and operating system version.

$ node -v
  v7.9.0
$ yarn --version
  0.23.2
$ system_profiler SPSoftwareDataType | grep "System Version"
  System Version: macOS 10.12.4 (16E195)
@bestander
Copy link
Member

Nice idea, send a PR

@bestander
Copy link
Member

similar to #3734

@bestander
Copy link
Member

cc @helloandre do you want to do this one too? :)

@amcgee
Copy link
Author

amcgee commented Jun 29, 2017

@helloandre if you want to tackle this be my guest, otherwise I'm happy to take a stab at it.

@bestander
Copy link
Member

The rules of dibs work here, don't wait, @amcgee, send a PR :)

@philquinn
Copy link
Contributor

@amcgee @bestander I put a PR for this. I hope that is okay.

@amcgee
Copy link
Author

amcgee commented Sep 28, 2017 via email

philquinn added a commit to philquinn/yarn that referenced this issue Sep 29, 2017
philquinn added a commit to philquinn/yarn that referenced this issue Oct 1, 2017
@arcanis arcanis closed this as completed in 1276e3f Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants