Skip to content

Commit

Permalink
Fix command to delete local turborepo cache (#3109)
Browse files Browse the repository at this point in the history
It was in a fenced code block on a single line, which was causing `sh`
to be present at the beginning of each command (very confusing and hard
to catch).

_On a completely unrelated topic..._ (content warning: sarcasm)

_I used [StackBlitz Codeflow](https://stackblitz.com/codeflow/) to make
this PR, and `pnpm run docs` did not work because `make` isn't available
(Codeflow uses a technology called
[WebContainers](https://blog.stackblitz.com/posts/introducing-webcontainers/),
which runs entirely in the browser). I think we should port Make, the
Rust compiler, Cargo and anything needed to compile Turbo to Web
Assembly and/or JavaScript, so that we can run the whole toolchain in
the browser. Sounds pretty easy honestly 👍_

Co-authored-by: Thomas Knickman <tom.knickman@vercel.com>
  • Loading branch information
nasso and tknickman committed Dec 22, 2022
1 parent 44c93aa commit 59edbb7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/pages/repo/docs/core-concepts/remote-caching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,16 @@ Your cache artifacts will now be stored locally _and_ in your Remote Cache.
To verify, delete your local Turborepo cache with:

<Tabs items={["unix", "win"]} storageKey="selected-os">
<Tab>```sh rm -rf ./node_modules/.cache/turbo ```</Tab>
<Tab>```sh rd /s /q "./node_modules/.cache/turbo" ```</Tab>
<Tab>
```sh
rm -rf ./node_modules/.cache/turbo
```
</Tab>
<Tab>
```sh
rd /s /q "./node_modules/.cache/turbo"
```
</Tab>
</Tabs>

Then run the same build again. If things are working properly, `turbo` should not execute tasks locally, but rather download both the logs and artifacts from your Remote Cache and replay them back to you.
Expand Down

1 comment on commit 59edbb7

@vercel
Copy link

@vercel vercel bot commented on 59edbb7 Dec 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.