build icon indicating copy to clipboard operation
build copied to clipboard

Why is `build_runner` now a non-dev dependency of `build_runner_core`?

Open Rexios80 opened this issue 5 months ago • 1 comments

This makes little sense. Shouldn't the "internal" file that is in build_runner be in build_runner_core? I have tooling that runs the build_runner if a project depends on it, but now every project that depends on build now transitively depends on build_runner.

Rexios80 avatar Jun 23 '25 15:06 Rexios80

Yes, it needs cleaning up; I'm working on a release for https://github.com/dart-lang/build/issues/3977 as that is blocking quite a lot of work, then I'll work on the package structure.

Sorry about that.

In the meantime you could either:

  • Pin to build_runner <2.5.0
  • replace your check for a build_runner transitive dep with a check for specific generator packages

davidmorgan avatar Jun 23 '25 15:06 davidmorgan

With https://github.com/dart-lang/build/pull/4177 build no longer depends on build_runner_core, so I think that will fix your issue. Please reopen if not.

I'll continue to clean up the packages, I think I will probably merge all the "runtime" stuff into build_runner.

davidmorgan avatar Sep 02 '25 10:09 davidmorgan