Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
May 28, 2024

Conversation

amrbashir
Copy link
Member

closes #9666

@amrbashir amrbashir requested a review from a team as a code owner May 8, 2024 22:16

// 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
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
20 checks passed
@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