Skip to content

fix(build): avoid copying resource onto itself - #9710

Merged
lucasfernog merged 3 commits into
devfrom
fix/build/resources-same-src-target
May 28, 2024
Merged

fix(build): avoid copying resource onto itself#9710
lucasfernog merged 3 commits into
devfrom
fix/build/resources-same-src-target

Conversation

@amrbashir

Copy link
Copy Markdown
Member

closes #9666

@amrbashir
amrbashir requested a review from a team as a code owner May 8, 2024 22:16
Comment thread core/tauri-build/src/lib.rs Outdated

// avoid copying the resource if target is the same as source
let src = resource.path().canonicalize()?;
let target = path.canonicalize()?.join(resource.target());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should canonicalize only once

@lucasfernog
lucasfernog merged commit 19b696b into dev May 28, 2024
@lucasfernog
lucasfernog deleted the fix/build/resources-same-src-target branch May 28, 2024 16:48
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] [v2] Cannot create a file when that file already exists when bundling workspace binaries

2 participants