https://github.com/rmacklin/yarn-issue-2109-repro
https://github.com/rmacklin/yarn-issue-2109-repro
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rmacklin/yarn-issue-2109-repro
- Owner: rmacklin
- Created: 2016-12-02T01:06:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-02T01:19:07.000Z (over 9 years ago)
- Last Synced: 2025-08-14T05:36:54.261Z (10 months ago)
- Language: JavaScript
- Size: 744 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reproduction repository for https://github.com/yarnpkg/yarn/issues/2109
Steps to reproduce:
1. `git clone git@github.com:rmacklin/yarn-issue-2109-repro.git`
2. `cd yarn-issue-2109-repro`
3. `node yarn-0.17.10.js upgrade left-pad`
4. Observe:
This added a new, untracked tarball for the new version of `left-pad` in the
cache:
```
On branch master
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
modified: package.json
modified: yarn.lock
Untracked files:
(use "git add ..." to include in what will be committed)
npm-packages-offline-cache/left-pad-1.1.3.tgz
no changes added to commit (use "git add" and/or "git commit -a")
```
However, the old `npm-packages-offline-cache/left-pad-1.1.2.tgz` tarball was
_not_ removed even though it's no longer used. This means that it has to be
manually deleted (an easy step to forget) in order to prevent the offline cache
from growing to contain many unused packages over time.