Native assets: dart build
may delete your project when used wrongly
#54144
Labels
area-dart-cli
Use area-dart-cli for issues related to the 'dart' command like tool.
dart-cli-build
P2
A bug or feature request we're likely to work on
triaged
Issue has been triaged by sub team
Milestone
Native assets tracking issue: #50565
When I was testing
dart build
, I tried setting the current directory as the output directory:dart --enable-experiment=native-assets build .\bin\native_assets_test.dart -o .
Because
dart build
first deletes everything in the output directory, I accidently deleted my whole project. Since this seems to be a common mistake one could fall for, there should be some guard in place to prevent that.General info
The text was updated successfully, but these errors were encountered: