From 1d6cf6f75b27978f82d041f95b247f1cbc87a6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Thu, 16 Nov 2023 17:22:24 +0100 Subject: [PATCH] Fix environments in `test_persistent_tasks` (part 2) (#241) --- CHANGELOG.md | 7 +++++++ Project.toml | 2 +- src/persistent_tasks.jl | 3 +-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b7416db..670149d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.8.2] - 2023-11-16 + +### Changed + +- `test_persistent_tasks` no longer clears the environmetn of the subtask. Instead, it modifies `LOAD_PATH` directly to make stdlibs work. ([#240](https://github.com/JuliaTesting/Aqua.jl/pull/240)) + + ## [0.8.1] - 2023-11-16 ### Changed diff --git a/Project.toml b/Project.toml index 7f4d3af0..59dfd272 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Aqua" uuid = "4c88cf16-eb10-579e-8560-4a9242c79595" authors = ["Takafumi Arakaki and contributors"] -version = "0.8.1" +version = "0.8.2" [deps] Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" diff --git a/src/persistent_tasks.jl b/src/persistent_tasks.jl index 62b67eca..3f59b350 100644 --- a/src/persistent_tasks.jl +++ b/src/persistent_tasks.jl @@ -151,8 +151,7 @@ end ) end # Precompile the wrapper package - cmd = `$(Base.julia_cmd()) --project=$wrapperdir -e 'using Pkg; Pkg.precompile()'` - cmd = setenv(cmd, String[]) + cmd = `$(Base.julia_cmd()) --project=$wrapperdir -e 'push!(LOAD_PATH, "@stdlib"); using Pkg; Pkg.precompile()'` proc = run(cmd, stdin, stdout, stderr; wait = false) while !isfile(statusfile) && process_running(proc) sleep(0.5)