Skip to content

Opt out of cargo build-dir layout v2 in CI test job - #1041

Closed
francisdb wants to merge 1 commit into
avianphysics:mainfrom
francisdb:ci/opt-out-build-dir-layout-v2
Closed

Opt out of cargo build-dir layout v2 in CI test job#1041
francisdb wants to merge 1 commit into
avianphysics:mainfrom
francisdb:ci/opt-out-build-dir-layout-v2

Conversation

@francisdb

@francisdb francisdb commented Jul 31, 2026

Copy link
Copy Markdown

Objective

Since cargo nightly 2026-07-30, cargo enables its new build-dir layout by default (rust-lang/cargo#17258). cargo-nextest does not support the new layout yet: it builds the runtime library search path from the old target/debug[/deps] convention, so with bevy/dynamic_linking every test binary fails to load libbevy_dylib.so and test listing aborts. This currently breaks the Test Suite job on every PR.

Solution

Set cargo's temporary opt-out env var __CARGO_TEMPORARY_BUILD_DIR_NEW_LAYOUT_OPT_OUT in the test job to keep the old layout until a nextest release supports layout v2.

AI assisted

Testing

CI should now succeed, unlike #1040

Reported on the nextest side as nextest-rs/nextest#3512

Since nightly 2026-07-30, cargo enables its new build-dir layout by
default (rust-lang/cargo#17258). cargo-nextest does not support the new
layout yet: it builds the runtime library search path from the old
target/debug[/deps] convention, so with bevy/dynamic_linking every test
binary fails to load libbevy_dylib.so and test listing aborts. This
currently breaks the Test Suite job on every PR.

Set cargo's temporary opt-out env var in the test job to keep the old
layout until a nextest release supports layout v2.
@francisdb

Copy link
Copy Markdown
Author

Should no longer be needed as the issue in nextest has been fixed https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.143

@francisdb francisdb closed this Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant