-
Notifications
You must be signed in to change notification settings - Fork 236
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
Comments
Thanks for filing this, @ubuntupunk! Can you elaborate slightly for the sake of a clear end-to-end feature request? |
An example spec with pip: TMPDIR=/media/user/TMP pip install
--cache-dir=$TMPDIR --build $TMPDIR -r requirements.txt
or npm which has an npm install --prefix option to set the node modules
install directory (still not ideal)
Volta currently defaults to installing toolchains inside the user home
directory. A flag to split or move the load to either another drive, or a
tmp directory on a <big-tmp-drive> etc would be a great help.
I should be able to just ask Volta to resolve my node space problems, and
not bother again?
…On Wed, 20 Mar 2024 at 15:12, Chris Krycho ***@***.***> wrote:
Thanks for filing this, @ubuntupunk <https://github.com/ubuntupunk>! Can
you elaborate slightly for the sake of a clear end-to-end feature request?
—
Reply to this email directly, view it on GitHub
<#1718 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB4HBTYPAZMW3XRPXNMGTDYZGDLRAVCNFSM6AAAAABE5KY4OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBZGUZTOMBYGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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! |
There's some trickiness with splitting up the 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 |
Yes, it makes sense. But not if you need this just for one project with a
large code base. Thanks for responding.
…On Tue, 2 Apr 2024 at 06:59, Charles Pierce ***@***.***> wrote:
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 <https://doc.rust-lang.org/std/fs/fn.rename.html>
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 <https://github.com/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?
—
Reply to this email directly, view it on GitHub
<#1718 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB4HBS4PG4SATYVUCGE6BTY3I3JZAVCNFSM6AAAAABE5KY4OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGA4DKMJSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.
The text was updated successfully, but these errors were encountered: