flutter/packages/flutter_tools/lib/src
Alex Li e8366e3334
🐛 Use consist slashes when generating dep files (#169570)
Continue with https://github.com/flutter/flutter/pull/169467. I've
noticed that paths in the depfile on Windows are generated with
non-normalized paths. This PR normalizes every single file path before
putting them into the output.

This might also fix https://github.com/flutter/flutter/issues/163591 as
a root cause and can be easily cherry-picked.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
2025-05-28 15:59:20 +00:00
..
android [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
base [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
build_system 🐛 Use consist slashes when generating dep files (#169570) 2025-05-28 15:59:20 +00:00
commands 🐛 Normalize generated file paths for the l10n generator (#169467) 2025-05-26 23:25:42 +00:00
custom_devices [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
dart Reverts "Add workspace (#169451)" (#169468) 2025-05-26 14:07:27 +00:00
debug_adapters [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
drive Precise browser resizing with integration_test and driver (#160678) 2025-05-26 16:58:11 +00:00
intellij [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
ios Make FlutterGeneratedPluginSwiftPackage an Xcode root package (#168789) 2025-05-19 15:27:33 +00:00
isolated Set pause_isolates_on_start flag if --start-paused (#169392) 2025-05-27 17:16:04 +00:00
linux Fix flutter doctor usage of eglinfo in failure cases. (#164334) 2025-02-28 13:07:55 +00:00
localizations 🐛 Normalize generated file paths for the l10n generator (#169467) 2025-05-26 23:25:42 +00:00
macos Remove now disabled code that would generate .flutter-plugins. (#169320) 2025-05-26 18:13:03 +00:00
migrations Make FlutterGeneratedPluginSwiftPackage an Xcode root package (#168789) 2025-05-19 15:27:33 +00:00
proxied_devices Start removing Observatory support and references (#169216) 2025-05-24 00:00:30 +00:00
reporting Use .flutter-plugins-dependencies for crash reporting. (#169319) 2025-05-26 18:13:29 +00:00
runner Reverts "Initialize default-flavor in FlutterCommand, adds integration test. (#169298)" (#169581) 2025-05-28 12:35:47 +00:00
test Reverts "Add workspace (#169451)" (#169468) 2025-05-26 14:07:27 +00:00
tester Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
vscode [flutter_tools] Fix VS Code package.json path on macOS with case-sensitive file system (#163409) 2025-03-28 16:35:15 +00:00
web [tool] Add --no-minify flag to JS Compiler (#169102) 2025-05-22 16:32:50 +00:00
widget_preview [ Widget Preview ] Refactor @Preview() detection and code generation (#168307) 2025-05-16 19:59:25 +00:00
windows [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
application_package.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
artifacts.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
asset.dart Only bundle assets and plugins from transitive closure of dependencies (#160443) 2025-05-19 15:30:58 +00:00
build_info.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
bundle_builder.dart Remove legacy scenec stuff from flutter_tool (#163569) 2025-02-21 17:41:02 +00:00
bundle.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
cache.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
cmake_project.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
cmake.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
compile.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
compute_dev_dependencies.dart Only bundle assets and plugins from transitive closure of dependencies (#160443) 2025-05-19 15:30:58 +00:00
context_runner.dart Add flutter: config: {...} section to pubspec.yaml to influence FeatureFlags (#167953) 2025-04-28 23:59:21 +00:00
convert.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
daemon.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
desktop_device.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
devfs.dart [flutter_tool] Handle RPCErrorKind.kConnectionDisposed (#164299) 2025-03-27 08:51:38 +00:00
device_port_forwarder.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
device_vm_service_discovery_for_attach.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
device.dart Start removing Observatory support and references (#169216) 2025-05-24 00:00:30 +00:00
devtools_launcher.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
doctor_validator.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
doctor.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
emulator.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
features.dart Disable the ability to opt-out of explicit-package-dependencies. (#169283) 2025-05-22 21:42:50 +00:00
flutter_application_package.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
flutter_cache.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
flutter_device_manager.dart Revert the preview-device feature, tests, and code that only existed for it. (#162835) 2025-02-08 01:03:25 +00:00
flutter_features_config.dart Add flutter: config: {...} section to pubspec.yaml to influence FeatureFlags (#167953) 2025-04-28 23:59:21 +00:00
flutter_features.dart Disable the ability to opt-out of explicit-package-dependencies. (#169283) 2025-05-22 21:42:50 +00:00
flutter_manifest.dart Use config: enable-swift-...: false, remove disable-swift-...: true. (#168433) 2025-05-07 18:28:22 +00:00
flutter_plugins.dart Remove now disabled code that would generate .flutter-plugins. (#169320) 2025-05-26 18:13:03 +00:00
flutter_project_metadata.dart Tweak language post-merge of #160695. (#160876) 2024-12-27 21:30:57 +00:00
globals.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
http_host_validator.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
license_collector.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
mdns_discovery.dart Don't throw on error for mDNS when searching for Dart VML url on core devices (#167135) 2025-04-16 22:46:13 +00:00
native_assets.dart [native assets] Rewrite install names for relocated native libraries (#153054) 2024-08-29 14:51:23 +00:00
persistent_tool_state.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
platform_plugins.dart Removes dev dependencies from generated plugin registrant for non-Android platforms (#161828) 2025-01-30 17:51:07 +00:00
plugins.dart Only bundle assets and plugins from transitive closure of dependencies (#160443) 2025-05-19 15:30:58 +00:00
pre_run_validator.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
project_validator_result.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
project_validator.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
project.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
protocol_discovery.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
proxy_validator.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
resident_devtools_handler.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
resident_runner.dart Start removing Observatory support and references (#169216) 2025-05-24 00:00:30 +00:00
run_cold.dart Start removing Observatory support and references (#169216) 2025-05-24 00:00:30 +00:00
run_hot.dart Start removing Observatory support and references (#169216) 2025-05-24 00:00:30 +00:00
template.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
tracing.dart Remove outdated ignores (#162773) 2025-02-06 18:40:25 +00:00
update_packages_pins.dart Unpin test/test_core/test_api packages (#169198) 2025-05-22 23:15:08 +00:00
version.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
vmservice.dart [tool] Fix broken comment references and code spans in doc comments (#168498) 2025-05-15 21:14:26 +00:00
web_template.dart [tool] Refactor WebTemplate to be immutable (#168201) 2025-05-06 03:28:25 +00:00
xcode_project.dart Make FlutterGeneratedPluginSwiftPackage an Xcode root package (#168789) 2025-05-19 15:27:33 +00:00