When running tools/test.py inside the Dart SDK:
The dart executable prints an error:
tools/testing/dart/main.dart:1: Warning: Interpreting this as package URI, 'package:test_dart/main.dart'.
The tools/test.py wrapper invokes
tools/sdks/dart-sdk/bin/dart tools/testing/dart/main.dart. This warning seems to be because .packages contains
tools/testing/dart/main.dart is inside the
test_dart package. The warning is telling us that the package URI was rewritten.
We would like to fix this warning. It doesn’t seem to be possible to invoke the dart script with a package URI:
tools/sdks/dart-sdk/bin/dart package:test_dart/main.dart Crash when compiling package:test_dart/main.dart, at character offset null: FileSystemException(uri=package:test_dart/.packages; message=StandardFileSystem only supports file:* and data:* URIs)
As only file: and data: are supported.
- We could delete the entry in .packages, however, pkg/testing has three uses of the package. Unclear if we can get refactor ourselves out of that.
- We could have another entry point outside of the tools/testing/dart directory.
- Entry points inside the package: scheme could be implemented.
- The warning could stop being shown in these circumstances.
- Or something else?
We’re unclear how best to resolve this problem. Front end team, can you advise us please?