Thank you for an incredible project! So I'm trying to set this up in a complex env and have LD_PRELOAD in the global profile (for reasons beyond me, it's complicated…) and anyway, this is breaking with cache: true in vite.config.ts.
import{defineConfig}from"vite-plus";exportdefaultdefineConfig({run: {cache: true,},});shell-$ vp run -r buildVITE+ - The Unified Toolchain for the Web~/my-package-name-in-workspace$ vp pack✗ Failed to spawn process: failed to prepare the command for injection: Invalid argument (os error 22)
This originates on line 173 of fspy_shared_unix/src/exec/mod.rs:
| pubfnensure_env( |
| envs:&mutVec<(BString,Option<BString>)>, |
| name:implAsRef<BStr>, |
| value:implAsRef<BStr>, |
| ) -> nix::Result<()>{ |
| let name = name.as_ref(); |
| let value = value.as_ref(); |
| let existing_value = envs.iter().find_map(|(n, v)| if n == name { v.as_ref()}else{None}); |
| ifletSome(existing_value) = existing_value { |
| returnif existing_value == value {Ok(())}else{Err(nix::Error::EINVAL)}; |
| } |
| envs.push((name.to_owned(),Some(value.to_owned()))); |
| Ok(()) |
| } |
Thank you for an incredible project! So I'm trying to set this up in a complex env and have
LD_PRELOADin the global profile (for reasons beyond me, it's complicated…) and anyway, this is breaking withcache: truein vite.config.ts.This originates on line 173 of
fspy_shared_unix/src/exec/mod.rs:vite-task/crates/fspy_shared_unix/src/exec/mod.rs
Lines 164 to 177 in b2e2e2c