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

Running notion use creates an empty cache file #189

Closed
mikrostew opened this issue Nov 5, 2018 · 3 comments
Closed

Running notion use creates an empty cache file #189

mikrostew opened this issue Nov 5, 2018 · 3 comments
Labels

Comments

@mikrostew
Copy link
Contributor

I already have node 10.6.0 installed. This is what is happening:

$ ls -al ~/.notion/cache/node/
total 33032
drwxr-xr-x  5 mistewar  LINKEDIN\eng       160 Nov  1 16:08 .
drwxr-xr-x  4 mistewar  LINKEDIN\eng       128 Nov  1 16:03 ..
-rw-------  1 mistewar  LINKEDIN\eng    126523 Nov  1 16:08 index.json
-rw-------  1 mistewar  LINKEDIN\eng        29 Nov  1 16:08 index.json.expires
-rw-r--r--  1 mistewar  LINKEDIN\eng  16208913 Nov  1 16:08 node-v10.6.0-darwin-x64.tar.gz
$ notion use node 9.8
Pinned node to version 9.8.0 in package.json
$ ls -al ~/.notion/cache/node/
total 33032
drwxr-xr-x  6 mistewar  LINKEDIN\eng       192 Nov  5 15:13 .
drwxr-xr-x  4 mistewar  LINKEDIN\eng       128 Nov  1 16:03 ..
-rw-------  1 mistewar  LINKEDIN\eng    126948 Nov  5 15:13 index.json
-rw-------  1 mistewar  LINKEDIN\eng        29 Nov  5 15:13 index.json.expires
-rw-r--r--  1 mistewar  LINKEDIN\eng  16208913 Nov  1 16:08 node-v10.6.0-darwin-x64.tar.gz
-rw-r--r--  1 mistewar  LINKEDIN\eng         0 Nov  5 15:13 node-v9.8.0-darwin-x64.tar.gz
@mikrostew mikrostew added the bug label Nov 5, 2018
@charlespierce
Copy link
Contributor

I don't believe this is an issue any more. Downloaded tarballs are no longer kept in ~/.notion/cache/, instead they are kept in ~/.notion/tools/inventory/, and running notion pin node 9.8 causes the full tarball to be downloaded and stored in that location.

@chriskrycho
Copy link
Contributor

Have we confirmed that this is no longer an issue? If so, let's close it. (Also volta use does not exist anymore; I believe it would be under pin or install?)

@charlespierce
Copy link
Contributor

Confirmed, this isn't an issue. When we run volta pin (the equivalent to notion use), we fully fetch the cache file, we don't just create an empty one. Also, as of #498, we only write the cache file once the install has been completed, in an atomic rename operation.

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

No branches or pull requests

3 participants