Skip to content

Commit

Permalink
fix loading config from pubspec.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
p-mazhnik committed Aug 2, 2022
1 parent 4ffd0f5 commit 267737a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/main.dart
Expand Up @@ -181,11 +181,9 @@ Map<String, dynamic>? loadConfigFileFromArgResults(ArgResults argResults, {bool
return loadConfigFile(defaultConfigFile, fileOptionResult);
} catch (e) {
// Try pubspec.yaml for compatibility
if (configFile == null) {
try {
return loadConfigFile('pubspec.yaml', fileOptionResult);
} catch (_) {}
}
try {
return loadConfigFile('pubspec.yaml', fileOptionResult);
} catch (_) {}

// if nothing got returned, print error
if (verbose) {
Expand Down

0 comments on commit 267737a

Please sign in to comment.