Skip to content

fix(build): resolve target dir from OUT_DIR on new nightly - #15831

Merged
Legend-Master merged 3 commits into
tauri-apps:devfrom
lazerg:fix/issue-15830-target-dir-nightly
Aug 6, 2026
Merged

fix(build): resolve target dir from OUT_DIR on new nightly#15831
Legend-Master merged 3 commits into
tauri-apps:devfrom
lazerg:fix/issue-15830-target-dir-nightly

Conversation

@lazerg

@lazerg lazerg commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

tauri-build assumed the target dir sits exactly three levels above OUT_DIR. Recent nightly toolchains changed the build script output layout from build/<pkg>-<hash>/out to build/<pkg>/<hash>/out, so that assumption pointed one level too deep and sidecars and resources were copied into target/debug/build instead of target/debug.

It now walks up from OUT_DIR to the build directory and takes its parent, which works on both layouts.

Verified with the reproduction from the issue: on nightly the sidecar now lands in target/debug/hello again, and stable is unaffected.

Closes #15830

@lazerg
lazerg requested a review from a team as a code owner August 5, 2026 16:36
Legend-Master
Legend-Master previously approved these changes Aug 6, 2026

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just a bit of nitpicks and we can get this merged.

Comment thread crates/tauri-build/src/lib.rs Outdated
Comment thread crates/tauri-build/src/lib.rs Outdated
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through d4b8b00

There are 14 changes which include tauri with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with minor, tauri-bundler with minor, tauri-build with minor, tauri-macos-sign with minor, tauri-codegen with minor, tauri-macros with minor, tauri-plugin with minor, tauri-driver with minor, @tauri-apps/api with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.11.1 2.12.0
tauri-utils 2.9.3 2.10.0
tauri-macos-sign 2.3.4 2.4.0
tauri-bundler 2.9.4 2.10.0
tauri-runtime 2.11.3 2.12.0
tauri-runtime-wry 2.11.4 2.12.0
tauri-codegen 2.6.3 2.7.0
tauri-macros 2.6.3 2.7.0
tauri-plugin 2.6.3 2.7.0
tauri-build 2.6.3 2.7.0
tauri 2.11.5 2.12.0
@tauri-apps/cli 2.11.4 2.12.0
tauri-cli 2.11.4 2.12.0
tauri-driver 2.0.6 2.1.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@Legend-Master
Legend-Master merged commit c0bd0d5 into tauri-apps:dev Aug 6, 2026
23 checks passed
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.

[bug] target dir computation incorrect with nightly toolchain

2 participants