@@ -97,7 +97,7 @@ class PubspecLock {
97
97
98
98
List <PackageExceptionDetails > checkPackage (
99
99
String pkgName, VersionConstraint constraint,
100
- {String ? forArgument, bool requireDirect = true }) {
100
+ {String ? forArgument}) {
101
101
var issues = < PackageExceptionDetails > [];
102
102
var missingDetails =
103
103
PackageExceptionDetails .missingDep (pkgName, constraint);
@@ -107,13 +107,6 @@ class PubspecLock {
107
107
if (pkgDataMap == null ) {
108
108
issues.add (missingDetails);
109
109
} else {
110
- var dependency = pkgDataMap['dependency' ] as String ? ;
111
- if (requireDirect &&
112
- dependency != null &&
113
- ! dependency.startsWith ('direct ' )) {
114
- issues.add (missingDetails);
115
- }
116
-
117
110
var source = pkgDataMap['source' ] as String ? ;
118
111
if (source == 'hosted' ) {
119
112
// NOTE: pkgDataMap['description'] should be:
@@ -145,7 +138,6 @@ Future<List<PackageExceptionDetails>> _validateBuildDaemonVersion(
145
138
var buildDaemonIssues = pubspecLock.checkPackage (
146
139
'build_daemon' ,
147
140
VersionConstraint .parse (buildDaemonConstraint),
148
- requireDirect: false ,
149
141
);
150
142
151
143
// Only warn of build_daemon issues if they have a dependency on the package.
@@ -158,8 +150,7 @@ Future<List<PackageExceptionDetails>> _validateBuildDaemonVersion(
158
150
// used by their application.
159
151
if (info.isNewer &&
160
152
pubspecLock
161
- .checkPackage ('build_daemon' , info.buildDaemonConstraint,
162
- requireDirect: false )
153
+ .checkPackage ('build_daemon' , info.buildDaemonConstraint)
163
154
.isEmpty) {
164
155
issues.add (PackageExceptionDetails ._('$issuePreamble \n '
165
156
'A newer version of webdev is available which supports '
@@ -181,7 +172,6 @@ final buildWebCompilersConstraint = VersionConstraint.parse('^4.0.4');
181
172
Future <void > checkPubspecLock (PubspecLock pubspecLock,
182
173
{required bool requireBuildWebCompilers}) async {
183
174
var issues = < PackageExceptionDetails > [];
184
-
185
175
var buildRunnerIssues =
186
176
pubspecLock.checkPackage ('build_runner' , buildRunnerConstraint);
187
177
0 commit comments