fix: close the VBS-side gaps noted on Void/Library#61
This commit is contained in:
1 parent
4f581d1b51
commit
4d51331777
13 files changed
+158
-14
No files matched your search
@@ -608,6 +608,9 @@ discover_profiles(const CompiledDescriptor &descriptor, const FrontendOptions &o
|
||||
req.arguments = {"--mode", "profiles", "--output", out_file.string(), "--request-id", req_id};
|
||||
req.working_directory = options.project_root;
|
||||
req.timeout = options.eval_timeout;
|
||||
for (const auto &[key, value] : options.extra_environment) {
|
||||
req.environment.set_vars[key] = value;
|
||||
}
|
||||
|
||||
auto proc = Platform::run_supervised(req);
|
||||
auto cleanup = [&] { std::filesystem::remove(out_file, ec); };
|
||||
@@ -735,6 +738,9 @@ evaluate_project(const CompiledDescriptor &descriptor, const ProfileContext &con
|
||||
"--context-hash", ctx_hash};
|
||||
req.working_directory = options.project_root;
|
||||
req.timeout = options.eval_timeout;
|
||||
for (const auto &[key, value] : options.extra_environment) {
|
||||
req.environment.set_vars[key] = value;
|
||||
}
|
||||
|
||||
auto proc = Platform::run_supervised(req);
|
||||
if (!proc) {
|
||||
@@ -819,6 +825,9 @@ evaluate_workspace(const CompiledDescriptor &descriptor, const FrontendOptions &
|
||||
req.arguments = {"--mode", "workspace", "--output", out_file.string(), "--request-id", req_id};
|
||||
req.working_directory = options.project_root;
|
||||
req.timeout = options.eval_timeout;
|
||||
for (const auto &[key, value] : options.extra_environment) {
|
||||
req.environment.set_vars[key] = value;
|
||||
}
|
||||
|
||||
auto proc = Platform::run_supervised(req);
|
||||
auto cleanup = [&] { std::filesystem::remove(out_file, ec); };
|
||||
|
||||
Reference in new issue
Block a user