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

Native assets: dart build may delete your project when used wrongly #54144

Closed
Dampfwalze opened this issue Nov 23, 2023 · 1 comment
Closed
Assignees
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

Comments

@Dampfwalze
Copy link

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

  • Dart 3.2.0 (stable) (Tue Nov 14 18:26:59 2023 +0000) on "windows_x64"
  • on windows / "Windows 10 Pro" 10.0 (Build 19045)
  • locale is de-DE
@ghost
Copy link

ghost commented Nov 23, 2023

The same happened to me and I can re-produce the bug.

@lrhn lrhn added area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. dart-cli-build labels Nov 23, 2023
@bkonyi bkonyi added P2 A bug or feature request we're likely to work on triaged Issue has been triaged by sub team labels Nov 23, 2023
@dcharkes dcharkes added this to the Native Assets v1.0 milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants