Skip to content

Conversation

davidmorgan
Copy link
Contributor

Fix #4135.

The code was converting paths with lib/ to "packages/" layout twice, the second time it matched on "lib" instead of "lib/" which would catch files named "lib" instead of just in a folder called "lib".

Remove the duplication, simplify by using strings instead of AssetId for the output paths.

Copy link

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@davidmorgan davidmorgan force-pushed the fix-create-merged-dir branch from ac9be15 to 68978a4 Compare August 14, 2025 08:26
@davidmorgan davidmorgan requested a review from jensjoha August 14, 2025 11:53
@davidmorgan davidmorgan merged commit 155f836 into dart-lang:master Aug 14, 2025
194 of 201 checks passed
@davidmorgan davidmorgan deleted the fix-create-merged-dir branch August 14, 2025 12:58
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.

PathExistsException: Creation failed, path = 'build\packages/[package_name]' (OS Error: Cannot create a file when that file already exists.

2 participants