Skip to content

Commit e46b724

Browse files
committed
Fix Dart SDK detection
Fixes #3933.
1 parent a7bffdc commit e46b724

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/shared/utils/workspace.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isWin, MAX_VERSION } from "../constants";
44
import { CustomScript, Logger, WritableWorkspaceConfig } from "../interfaces";
55

66
export function processKnownGitRepositories(logger: Logger, config: WritableWorkspaceConfig, gitRoot: string) {
7-
const isDartSdkRepo = fs.existsSync(path.join(gitRoot, "README.dart-sdk")) && fs.existsSync(path.join(gitRoot, ".dart_tool", "package_config.json"));
7+
const isDartSdkRepo = fs.existsSync(path.join(gitRoot, "README.dart-sdk")) && fs.existsSync(path.join(gitRoot, "DEPS"));
88
if (isDartSdkRepo) {
99
config.disableAutomaticPackageGet = true;
1010
// The Dart SDKs tests cannot run using pub, so also force them to use the VM.

0 commit comments

Comments
 (0)