Hive Hive
Sign in

fix(ci): escape Windows rustc cfg response args

GitHub issue · Closed

Metadata
Source
tuist/once #135
Updated
Jul 5, 2026
Domains
Once
Details

Summary

The release workflow on main is still failing in the Windows package jobs after the previous HOME setup fix. Those jobs now reach the Once Rust graph, but rustc rejects the generated cfg argument because the Windows response file parses feature="default" as feature=default unless the embedded quotes are escaped.

This keeps the existing response-file approach for Windows feature cfgs, since it avoids command-line length and shell quoting issues, and narrows the follow-up to the serialization boundary that was still losing quotes. Non-Windows Rust feature args continue to be passed inline, so the working Unix behavior is unchanged.

The regression test now asserts the response file contains escaped quote characters, which matches the form rustc suggests for preserving a quoted cfg value.

Testing

  • mise exec -- cargo test -p once-frontend --test prelude prelude_rust_windows_feature_cfgs_use_response_file
  • mise exec -- cargo test -p once-frontend --test prelude
  • mise exec -- cargo fmt --all -- --check
  • git diff --check
Flights

Investigate, reproduce, or fix this item in an isolated repository. Each Flight preserves its outcome and agent session.

New Flights are paused Configure model inference, GitHub, and a sandbox provider to start another Flight. Existing results remain available below.
No Flights yet

Start a Flight and preserve its objective, outcome, and session here.

Comments

No GitHub comments yet.