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

deno compile --code-cache-path #26980

Open
felipecrs opened this issue Nov 21, 2024 · 5 comments
Open

deno compile --code-cache-path #26980

felipecrs opened this issue Nov 21, 2024 · 5 comments
Labels
compile related to the `deno compile` feature suggestion suggestions for new features (yet to be agreed)

Comments

@felipecrs
Copy link

With the new code cache, compiled programs would end up writing to ~/.cache/deno. This may not be desirable. The program may have its own cache directory for example. Also, it would end up creating this directory in systems where Deno isn't even installed, which could lead to end-user confusion. End-users may not even know what is Deno.

@dsherret dsherret added suggestion suggestions for new features (yet to be agreed) compile related to the `deno compile` feature labels Nov 21, 2024
@dsherret
Copy link
Member

One issue with this is it's hard to configure. Maybe the code cache directory should just not have deno in the name.

@dsherret
Copy link
Member

dsherret commented Nov 21, 2024

I just checked and the code cache is written to the temp directory with the application name and not to ~/.cache/deno. #26977 will make this more clear in the future

@felipecrs
Copy link
Author

Oh. What is this then?

deno clean./pkgx-cc --syncls -la /home/felipecrs/.cache/deno
total 88
drwxr-xr-x  2 felipecrs felipecrs  4096 Nov 21 15:00 .
drwxr-xr-x 29 felipecrs felipecrs  4096 Nov 21 15:00 ..
-rw-r--r--  1 felipecrs felipecrs  4096 Nov 21 15:00 node_analysis_cache_v2
-rw-r--r--  1 felipecrs felipecrs 32768 Nov 21 15:00 node_analysis_cache_v2-shm
-rw-r--r--  1 felipecrs felipecrs 41232 Nov 21 15:00 node_analysis_cache_v2-wal

@felipecrs
Copy link
Author

felipecrs commented Nov 21, 2024

I see. That's something else. I found the actual cc here:

ls -lah /tmp/deno-compile-*
-rw-r--r-- 1 felipecrs felipecrs 1.8M Nov 21 14:12 /tmp/deno-compile-pkgx-cc.cache

@felipecrs
Copy link
Author

Oh. What is this then?

Those files are created even when using Deno 2.0.6, thus it's indeed unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile related to the `deno compile` feature suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

2 participants