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 Node with Volta with TMP options #1718

Open
ubuntupunk opened this issue Mar 19, 2024 · 5 comments
Open

Running Node with Volta with TMP options #1718

ubuntupunk opened this issue Mar 19, 2024 · 5 comments

Comments

@ubuntupunk
Copy link

This is probably a feature request, but an easy way to deal with drives running out of space, and dealing with a TMP directory on a secondary drive. Currently no spec for doing with Volta.

@chriskrycho
Copy link
Contributor

Thanks for filing this, @ubuntupunk! Can you elaborate slightly for the sake of a clear end-to-end feature request?

@ubuntupunk
Copy link
Author

ubuntupunk commented Mar 20, 2024 via email

@chriskrycho
Copy link
Contributor

That makes sense, yep! I think that's a good feature, and we would “just” need to update the layout crate to support that, since the tmp dir (as far as I know/can see) is currently “hard coded” as part of that. @charlespierce might remember differently if that is not true, though!

@charlespierce
Copy link
Contributor

There's some trickiness with splitting up the .volta directory IIRC: Specifically, the function that we use to move files around when doing an install, std::fs::rename explicitly doesn't work if the two paths are on different mount points. That's actually the reason that we have a /tmp directory inside of .volta, so we can be confident that they are on the same drive.

That said @ubuntupunk, you should be able to move the entire Volta directory (including all of its cache files) to a different drive. By default, we install into ~/.volta, but it can be customized with the VOLTA_HOME environment variable. The standard installation sets that in your profile script (e.g. .zshrc or .bash_profile), so updating that to point to a different location should be all that is needed. That would affect the entire Volta installation, however, would that work for your use-case?

@ubuntupunk
Copy link
Author

ubuntupunk commented Apr 2, 2024 via email

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

No branches or pull requests

3 participants