lints icon indicating copy to clipboard operation
lints copied to clipboard

Add versioned yaml files

Open nshahan opened this issue 3 years ago • 2 comments

package:pedantic had a useful feature where it created versioned yaml files (see https://github.com/google/pedantic/tree/master/lib) that made adopting new versions easier.

This would allow different packages in a mono repo to choose which version of package:lints they are going to enforce via a dependency on a single version of the lints package (ie the Dart SDK).

As it is now, if there is an updated version of package:lints, all of the packages in a mono repo must be migrated to the new version at the same time.

nshahan avatar Oct 27 '21 17:10 nshahan

As it is now, if there is an updated version of package:lints, all of the packages in a mono repo must be migrated to the new version at the same time.

Can you elaborate on this; I mean, even in a mono repo, doesn't each package in that repo have it's own pubspec, and thus can specify a different version?

mit-mit avatar Nov 08 '21 09:11 mit-mit

I meant a mono repo that forces a common set of dependencies pinned to the same version for all of the sub-packages. This is what the Dart SDK and Flutter repos do.

nshahan avatar Nov 09 '21 17:11 nshahan