OPENIDE workaround for rust bug in xplat launcher

(cherry picked from commit 90a55b27bf536dac20270e1b089eafa7f7769236)

(cherry picked from commit 137e49281d)
(cherry picked from commit 6129702ed9)
(cherry picked from commit 2fa313830f)
(cherry picked from commit 032552b721)
This commit is contained in:
axiom
2026-08-11 12:43:16 +04:00
committed by Nikita Iarychenko
parent ef7e48294c
commit 0defc825bb
+5 -1
View File
@@ -1,4 +1,7 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
//
// Modified by Dmitrij Pochepko at 2025 as part of the OpenIDE project (https://openide.ru).
// Any modifications are available on the same license terms as the original source code.
use {
anyhow::{bail, Context, Result},
@@ -170,6 +173,7 @@ fn extract_tar_bz2(archive: &Path, dest: &Path, extract_marker: &Path) -> Result
false => {
trace!("Using tar");
Command::new("tar")
.env("_OPENIDE_FOO", "bar") // workaround for rust issue 37519
.arg("-xjvf")
.arg(get_non_unc_string(archive)?)
.arg("-C")