Move validators to pub_validation package and install via dart install - #4858
Draft
mosuem wants to merge 8 commits into
Draft
Move validators to pub_validation package and install via dart install#4858mosuem wants to merge 8 commits into
mosuem wants to merge 8 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR moves in-tree package validators out of
package:pubinto a standalone packagepackage:pub_validation.Behavior on
dart pub publishpub_validation(or the configured validation package) is declared in the package'spubspec.yaml(dev_dependencies,dependencies, ordependency_overrides),pubruns the locally resolved version usingdart run <package>:<package>. This allows developers to pin, customize, or fork validator packages safely via audited workspace dependencies without fetching code at publish time.pubspec.yaml,pubinstalls the default version viadart install pub_validation@^0.1.0-devand executes the binary from Dart's global install directory.pub_validationexecutes with--jsonon the package directory, andpubparses reported errors, warnings, and hints to present to the user.Configuration & CLI Options
--validation-package=<package[@descriptor]>: Specifies the validation package to install and run (defaults topub_validation@^0.1.0-dev).--validation-hosted-url=<url>: Specifies the package server from which to install the validation package (defaults tohttps://pub.dev).