Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag pub publish --skip-validation to publish without resolution and validation #3904

Merged
merged 3 commits into from
May 11, 2023

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented May 1, 2023

An escape-hook if we have mistakes in our validations.

Fixes #3901

@sigurdm sigurdm requested a review from jonasfj May 1, 2023 14:07
@@ -251,7 +257,13 @@ the \$PUB_HOSTED_URL environment variable.''',
'pubspec.');
}

await entrypoint.acquireDependencies(SolveType.get, analytics: analytics);
if (!argResults['skip-validation']) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe do a getter for argResult['skip-validation']

@sigurdm sigurdm merged commit 9a8da3c into dart-lang:master May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dart pub publish --skip-validation
2 participants