mirror of
https://github.com/apple/pkl.git
synced 2026-05-28 01:29:15 +02:00
Add analyze imports libs (SPICE-0001) (#695)
This adds a new feature to build a dependency graph of Pkl programs, following the SPICE outlined in https://github.com/apple/pkl-evolution/pull/2. It adds: * CLI command `pkl analyze imports` * Java API `org.pkl.core.Analyzer` * Pkl stdlib module `pkl:analyze` * pkl-gradle extension `analyze` In addition, it also changes the Gradle plugin such that `transitiveModules` is by default computed from the import graph.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import "b.pkl"
|
||||
+1
@@ -0,0 +1 @@
|
||||
import "cyclicalB.pkl"
|
||||
+1
@@ -0,0 +1 @@
|
||||
import "cyclicalA.pkl"
|
||||
+1
@@ -0,0 +1 @@
|
||||
import* "[ab].pkl"
|
||||
Reference in New Issue
Block a user