You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bit more context on how it was a problem for us, when running on linux by several unix users. Once a first user installs, this creates this file that only this user can modify:
After this, if another unix user tries to install, this fail with:
Finding release for v11.0.1-2
GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v11.0.1-2
Downloading from https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/assets/13800816
Downloading to /tmp/vscode-ripgrep-cache-1.5.7/ripgrep-v11.0.1-2-x86_64-unknown-linux-musl.tar.gz
Download options: {"headers":{"user-agent":"vscode-ripgrep","accept":"application/octet-stream"}}
events.js:167
throw er; // Unhandled 'error' event
^
Error: EACCES: permission denied, open '/tmp/vscode-ripgrep-cache-1.5.7/ripgrep-v11.0.1-2-x86_64-unknown-linux-musl.tar.gz'
Emitted 'error' event at:
at fs.open (internal/fs/streams.js:250:12)
at FSReqWrap.oncomplete (fs.js:145:20)
We workaround by setting TMPDIR environment variable to different directories per users, but if this postinstall script could delete this file and folder it would be better I feel.
I know it's minor, but that temporary directory created here is not removed
vscode-ripgrep/lib/download.js
Lines 254 to 256 in c960152
The text was updated successfully, but these errors were encountered: