mirror of
https://github.com/apple/pkl.git
synced 2026-03-25 18:41:18 +01: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:
@@ -5407,7 +5407,7 @@ package {
|
||||
packageZipUrl = "https://example.com/\(name)/\(name)@\(version).zip" // <4>
|
||||
}
|
||||
----
|
||||
<1> The display name of the package. For display purposes only.
|
||||
<1> The display name of the package.For display purposes only.
|
||||
<2> The package URI, without the version part.
|
||||
<3> The version of the package.
|
||||
<4> The URL to download the package's ZIP file.
|
||||
@@ -5415,8 +5415,9 @@ package {
|
||||
The package itself is created by the command xref:pkl-cli:index.adoc#command-project-package[`pkl project package`].
|
||||
|
||||
This command only prepares artifacts to be published.
|
||||
Once the artifacts are prepared, they are expected to be uploaded to an HTTPS server such that the ZIP asset can be downloaded at path `packageZipUrl`, and the metadata can be downloaded at `+https://<package uri>+`.
|
||||
Once the artifacts are prepared, they are expected to be uploaded to an HTTPS server such that the ZIP asset can be downloaded at path `packageZipUrl`, and the metadata can be downloaded at `+https://<package uri>+`.
|
||||
|
||||
[[local-dependencies]]
|
||||
==== Local dependencies
|
||||
|
||||
A project can depend on a local project as a dependency.
|
||||
|
||||
Reference in New Issue
Block a user