Bogdanp / setup-racket

A GH action for installing Racket.
MIT License
52 stars 9 forks source link

Support caching #13

Closed aymanosman closed 4 years ago

aymanosman commented 4 years ago

Thanks for this repo.

I tried to add a cache via actions/cache. It breaks this action because raco fails of packages are already installed.

If you are interested in supporting this use case, how do you think one would go about fixing this?

Bogdanp commented 4 years ago

Instead of caching the entire ~/.racket folder, what I do is cache just ~/.racket/download-cache. This improves download speeds but doesn't help with compilation. I think for the latter, raco pkg install would need to change its behavior or add a flag that changes its behavior. I'm not sure there's a non-hacky way for this package to work around that.

aymanosman commented 4 years ago

Nice tip. I'll do that.

I agree that this should be handled at the raco pkg install level. This issue is related https://github.com/racket/racket/issues/3232.