-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressiondependency: dartDart team may need to help usDart team may need to help usengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Description
The current version of flutter master contains a version of pub that is not able to publish packages. It fails with the following error:
Invalid argument(s) (sdkPath): Must not be null
See this issue for more details.
This seems to be breaking CI in the flutter/plugins repo already (see the publishable checks on the latest PRs).
Steps to Reproduce
- Go to flutter master channel
- Ensure you're using the dart-sdk coming from flutter
pub publish --dry-runon any package
Logs
$ which pub
/usr/local/google/home/dit/github/flutter/bin/cache/dart-sdk/bin/pub
pub error:
$ pub publish --dry-run
Publishing extension_google_sign_in_as_googleapis_auth 1.0.0 to https://pub.dartlang.org:
|-- .gitignore
...
|-- pubspec.yaml
'-- test
'-- extension_google_sign_in_as_googleapis_auth_test.dart
Invalid argument(s) (sdkPath): Must not be null
dart:core ArgumentError.checkNotNull
package:analyzer/src/dart/analysis/context_builder.dart 49:19 ContextBuilderImpl.createContext
package:pub/src/dart.dart 115:36 AnalysisContextManager.createContextsForDirectory
package:pub/src/validator/strict_dependencies.dart 27:28 new StrictDependenciesValidator
package:pub/src/validator.dart 135:7 Validator.runAll
package:pub/src/command/lish.dart 165:21 LishCommand._validate
package:pub/src/command/lish.dart 141:15 LishCommand.run
package:args/command_runner.dart 197:27 CommandRunner.runCommand
package:pub/src/command_runner.dart 193:39 PubCommandRunner.runCommand.<fn>
dart:async new Future.sync
package:pub/src/utils.dart 113:12 captureErrors.wrappedCallback
dart:async runZoned
package:pub/src/utils.dart 130:5 captureErrors
package:pub/src/command_runner.dart 193:13 PubCommandRunner.runCommand
This is an unexpected error. Please run
pub --trace publish --dry-run
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
doctor:
$ flutter doctor -v
[✓] Flutter (Channel master, 1.21.0-2.0.pre.55, on Linux, locale en_US.UTF-8)
• Flutter version 1.21.0-2.0.pre.55 at /usr/local/google/home/dit/github/flutter
• Framework revision 1840b7121a (11 hours ago), 2020-07-16 23:15:23 -0700
• Engine revision d3b81f19fc
• Dart version 2.9.0 (build 2.9.0-21.0.dev 06183779d7)
(Labeling as P0 to prevent this from going to dev, which is not exhibiting the issue yet!)
Metadata
Metadata
Assignees
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressiondependency: dartDart team may need to help usDart team may need to help usengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.