Workiva / Workiva/dependency_validator

Support dart_dependency_validator.yaml at the root of a pub workspace

Open
#167 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
66
Forks
26
Avg merge
5d 7h
Merged PRs (30d)
7

Description

Is there a way to use dependency_validator in pub worspace, with a dart_dependency_validator.yaml file at the root of the workspace ?

For example, I need to add camera_android on all my apps pubspec.yaml in my workspace (to override camera plugin behavior)

So I would like to add a dart_dependency_validator.yaml file at the root of the workspace with this.

ignore:
  - camera_android

And run dart pub global run dependency_validator' which use it. And If dependency_validator' finds other dart_dependency_validator.yaml file in workspace packages/apps, it should combines dart_dependency_validator.yaml options. If the same property is found in sub package, I think the sub dart_dependency_validator.yaml file should overrides the 'default' same option found in the worskpace root dart_dependency_validator.yaml.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing dart_dependency_validator.yaml handling and the dart pub global run dependency_validator entry point. Define how a root configuration is found for a pub workspace, how options from package-level files are combined, and how package-level values override root values; done means the example ignore setting works across the workspace without changing individual pubspec.yaml files.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.