@@ -613,7 +613,10 @@ has been specified on the command line.''',
613
613
var value = data[name];
614
614
if (data[name] == option.defaultValue ||
615
615
(name == 'packages' &&
616
- value == Repository .uri.resolve ('.packages' ).toFilePath ())) {
616
+ value ==
617
+ Repository .uri
618
+ .resolve ('.dart_tool/package_config.json' )
619
+ .toFilePath ())) {
617
620
continue ;
618
621
}
619
622
@@ -634,8 +637,9 @@ has been specified on the command line.''',
634
637
// Only one value in the configuration map is mutable:
635
638
if (selectors.containsKey ('observatory_ui' )) {
636
639
if (selectors.length == 1 ) {
637
- configuration['packages' ] =
638
- Repository .uri.resolve ('.packages' ).toFilePath ();
640
+ configuration['packages' ] = Repository .uri
641
+ .resolve ('.dart_tool/package_config.json' )
642
+ .toFilePath ();
639
643
} else {
640
644
// Make a new configuration whose selectors map only contains
641
645
// observatory_ui, and remove observatory_ui from the original
@@ -648,8 +652,9 @@ has been specified on the command line.''',
648
652
selectors.remove ('observatory_ui' );
649
653
650
654
// Set the packages flag.
651
- observatoryConfiguration['packages' ] =
652
- Repository .uri.resolve ('.packages' ).toFilePath ();
655
+ observatoryConfiguration['packages' ] = Repository .uri
656
+ .resolve ('.dart_tool/package_config.json' )
657
+ .toFilePath ();
653
658
654
659
return [
655
660
..._expandConfigurations (configuration, selectors),
0 commit comments