-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Feature request: deno clean #3437
Comments
See #1687 |
I see an easy way to delete an outdated cache. This can be useful until a better solution will found. First of all, I assume that the entire cache of your project is located in a subfolder and not globally.
Then, you need:
Make it easy with the commands:
|
Partial duplicate of #2297? |
Yeah I found that at some point after opening this. I'd like to keep it though since it gives a somewhat detailed specification... |
Copying an idea from #2297 since that issue was closed in favor of this one: I think it's logical for this functionality to be an additional argument to An example: Caching: % deno cache --reload http://localhost:8080/local-modules/asdf@v0.1.3/mod.ts
Download http://localhost:8080/local-modules/asdf@v0.1.3/mod.ts
Download http://localhost:8080/local-modules/asdf@v0.1.3/deps.ts
Download https://deno.land/x/semver@v1.0.0/mod.ts
Download https://deno.land/std@0.58.0/testing/asserts.ts
Download http://localhost:8080/local-modules/process-io@v0.1.2/mod.ts
Download https://deno.land/std@0.58.0/fmt/colors.ts
Download https://deno.land/std@0.58.0/testing/diff.ts
Compile http://localhost:8080/local-modules/asdf@v0.1.3/mod.ts Deleting: % deno cache --delete http://localhost:8080/local-modules/asdf@v0.1.3/mod.ts
Delete http://localhost:8080/local-modules/asdf@v0.1.3/mod.ts
Delete http://localhost:8080/local-modules/asdf@v0.1.3/deps.ts
Delete https://deno.land/x/semver@v1.0.0/mod.ts
Delete https://deno.land/std@0.58.0/testing/asserts.ts
Delete http://localhost:8080/local-modules/process-io@v0.1.2/mod.ts
Delete https://deno.land/std@0.58.0/fmt/colors.ts
Delete https://deno.land/std@0.58.0/testing/diff.ts |
With the number of clean-specific CLI flags in this proposal, that would not be logical. Also consider the number of cache-specific flags that won't matter when cleaning --
Deleting all modules that are dependencies of x is an odd concept to me, given that dependencies can be shared. I can't think of a proper use case for this that isn't met by |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not stale |
What is the current status of this? |
As indicated by lack of comments for over a year, there's no progress and currently no intention to implement this. |
Would this be a good first issue? |
Hey, please consider adding this CLI feature; it would be great for more control and debugging with deno functions locally! |
I'm thinking we should ship a flat
A new list would look like this for me:
Either way I want to punt these for later. |
This just bit me in prod, my deno generated folder was somehow two gigs |
Remove the cache files corresponding to the given targets.
deno clean src/mod.ts
≈rm -f $DENO_DIR/gen/file$PWD/src/mod.ts.{js,map,meta}
deno clean dir1 dir2
≈rm -rf $DENO_DIR/gen/file$PWD/{dir1,dir2}
deno clean https://deno.land
≈rm -rf $DENO_DIR/{deps,gen}/https/deno.land
deno clean --remote
≈rm -rf $DENO_DIR/{deps,gen}/!(file)
deno clean --history
≈rm -f $DENO_DIR/deno_history.txt
deno clean --web-storage=<URLs>
≈rm -rf $DENO_DIR/web_storage/{<URLs>}
refs Implement localStorage #1657, discussion: --location=<URL> option #4981deno clean --all
≈rm -rf $DENO_DIR
Due to the current cache structure, cleaning for remote modules can only be done per-domain or coarser.
The text was updated successfully, but these errors were encountered: