From a78f8b9989c1ab8afd3d99bac9b9602d3186205a Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Thu, 25 Aug 2022 13:18:12 +0100 Subject: [PATCH] change wasi env vars --- lapce-proxy/src/plugin/wasi.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lapce-proxy/src/plugin/wasi.rs b/lapce-proxy/src/plugin/wasi.rs index d2d2ded5..a2a0484e 100644 --- a/lapce-proxy/src/plugin/wasi.rs +++ b/lapce-proxy/src/plugin/wasi.rs @@ -315,8 +315,8 @@ pub fn start_volt( let stderr = Arc::new(RwLock::new(WasiPipe::new())); let wasi = WasiCtxBuilder::new() .inherit_env()? - .env("OS", std::env::consts::OS)? - .env("ARCH", std::env::consts::ARCH)? + .env("VOLT_OS", std::env::consts::OS)? + .env("VOLT_ARCH", std::env::consts::ARCH)? .env( "VOLT_URI", Url::from_directory_path(volt_path)