| Index: dart/sdk/lib/_internal/pub/lib/src/command/lish.dart
|
| diff --git a/dart/sdk/lib/_internal/pub/lib/src/command/lish.dart b/dart/sdk/lib/_internal/pub/lib/src/command/lish.dart
|
| index 6d75814336c2f5d39ae5ca6dc019b7282a9d2cd5..1cc95ace29773c7b68628666a7b7a8dddbbf7371 100644
|
| --- a/dart/sdk/lib/_internal/pub/lib/src/command/lish.dart
|
| +++ b/dart/sdk/lib/_internal/pub/lib/src/command/lish.dart
|
| @@ -94,6 +94,15 @@ class LishCommand extends PubCommand {
|
| }
|
|
|
| Future onRun() {
|
| + // Sanity check. Don't push to the production server when running tests or
|
| + // developing on pub.
|
| + if (sdk.isBleedingEdge &&
|
| + server.toString() == HostedSource.defaultUrl &&
|
| + !dryRun) {
|
| + log.error('Cannot publish to $server from bleeding edge pub!');
|
| + return null;
|
| + }
|
| +
|
| if (force && dryRun) {
|
| log.error('Cannot use both --force and --dry-run.');
|
| this.printUsage();
|
|
|