Skip to content

Commit 577c008

Browse files
committed
fix: suppress xlings stderr (package index logs) on Windows with 2>nul
1 parent c6d2b63 commit 577c008

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/xlings.cppm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ std::string build_interface_command(const Env& env,
467467
std::string_view capability,
468468
std::string_view argsJson) {
469469
#if defined(_WIN32)
470-
return std::format("{} interface {} --args {}",
470+
return std::format("{} interface {} --args {} 2>nul",
471471
build_command_prefix(env), capability, shq(argsJson));
472472
#else
473473
return std::format("{} interface {} --args {} 2>/dev/null",
@@ -668,7 +668,7 @@ int install_with_progress(const Env& env, std::string_view target,
668668
_putenv_s("XLINGS_PROJECT_DIR", "");
669669
// Use raw path (no quoting) to avoid cmd.exe double-quote parsing issues.
670670
// Wrap only the JSON arg in single-escaped quotes for the C runtime.
671-
auto cmd = std::format("{} interface install_packages --args {}",
671+
auto cmd = std::format("{} interface install_packages --args {} 2>nul",
672672
env.binary.string(),
673673
shq(argsJson));
674674
#else

0 commit comments

Comments
 (0)