发布

  • fix(core): fix dependency with multiple dependent packages (#28669)

    frostbyte_neo 发布于 2024-11-01 20:13:59 +00:00

    • we introduce a feature to allow circular project dependencies to
      execute tasks in pr https://github.com/nrwl/nx/pull/28227/files
    • for this feature, we introduce the concept of dummy task as a
      temporary placeholder so we can still generate a task graph even if
      dependencies contain circular dependencies
    • however, it does not handle a task graph of multiple dummy task deps.
      for example:
      lib1 -> lib2 -> lib3 -> lib4
      if we got task graph like:
      lib1:build -> lib2:dummy
      lib2:dummy -> lib3:dummy
      lib3:dummy -> lib4:rebuild
      currently, it does not create a dependency between
      lib1:build->lib4:prebuild

    it should link the dependency when it contains multiple level of
    depending on dummy tasks

    Fixes https://github.com/nrwl/nx/issues/28599 and
    https://github.com/nrwl/nx/issues/28380

    下载附件