humazed
humazed

Reputation: 76922

Getting A private package cannot be published, when trying to publish flutter plugin

When trying to publish a flutter plugin by running flutter pub publish --dry-run I'm getting the following.

A private package cannot be published.

You can enable this by changing the "publish_to" field in your pubspec.

Upvotes: 2

Views: 706

Answers (1)

humazed
humazed

Reputation: 76922

The problem turns out that I was running this command inside the example directory.

Just needed to change to the root directory of the plugin and it works fine.

Upvotes: 9

Related Questions