| Index: sdk/lib/_internal/pub/lib/src/io.dart
 | 
| diff --git a/sdk/lib/_internal/pub/lib/src/io.dart b/sdk/lib/_internal/pub/lib/src/io.dart
 | 
| index b4f6d919b01131f4e8f233ea2fa909963f73f649..40f09bf0b1c781846477cb09a7bf4bb2b0cf0efb 100644
 | 
| --- a/sdk/lib/_internal/pub/lib/src/io.dart
 | 
| +++ b/sdk/lib/_internal/pub/lib/src/io.dart
 | 
| @@ -381,7 +381,7 @@ void createPackageSymlink(String name, String target, String symlink,
 | 
|  
 | 
|  /// Whether pub is running from within the Dart SDK, as opposed to from the Dart
 | 
|  /// source repository.
 | 
| -bool get runningFromSdk => path.extension(Platform.script) == '.snapshot';
 | 
| +bool get runningFromSdk => Platform.script.path.endsWith('.snapshot');
 | 
|  
 | 
|  /// Resolves [target] relative to the path to pub's `resource` directory.
 | 
|  String resourcePath(String target) {
 | 
| 
 |