mirror of
https://github.com/apple/pkl.git
synced 2026-05-28 09:39:17 +02:00
Replace magic test port 12110 with 0 (#345)
Also introduce constants for some test package SHAs to make them easier to update.
This commit is contained in:
@@ -52,16 +52,16 @@ examples {
|
||||
}
|
||||
|
||||
["package"] {
|
||||
import*("package://localhost:12110/birds@0.5.0#/catalog/*.pkl")
|
||||
import*("package://localhost:12110/birds@0.5.0#/**.pkl").keys.toListing()
|
||||
import*("package://localhost:0/birds@0.5.0#/catalog/*.pkl")
|
||||
import*("package://localhost:0/birds@0.5.0#/**.pkl").keys.toListing()
|
||||
}
|
||||
|
||||
["globbing with absolute URIs and percent encoding"] {
|
||||
import*("package://localhost:12110/packageContainingWildcardCharacters@1.0.0#/name%20*")
|
||||
import*("package://localhost:12110/packageContainingWildcardCharacters@1.0.0#/name%20with%20%5C%5Bwildcard%5D!%20characters~~.pkl")
|
||||
import*("package://localhost:0/packageContainingWildcardCharacters@1.0.0#/name%20*")
|
||||
import*("package://localhost:0/packageContainingWildcardCharacters@1.0.0#/name%20with%20%5C%5Bwildcard%5D!%20characters~~.pkl")
|
||||
}
|
||||
|
||||
["package glob and up one level"] {
|
||||
import*("package://localhost:12110/birds@0.5.0#/catalog/../catalog/*.pkl")
|
||||
import*("package://localhost:0/birds@0.5.0#/catalog/../catalog/*.pkl")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,6 @@ examples {
|
||||
}
|
||||
|
||||
["package:"] {
|
||||
read*("package://localhost:12110/birds@0.5.0#/**.pkl")
|
||||
read*("package://localhost:0/birds@0.5.0#/**.pkl")
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// no semver
|
||||
res = import("package://localhost:12110/foo#/bar.pkl")
|
||||
res = import("package://localhost:0/foo#/bar.pkl")
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
res = import("package://localhost:12110/birds@0.5.0::invalidalgo:abc123#/catalog/Bird.pkl")
|
||||
res = import("package://localhost:0/birds@0.5.0::invalidalgo:abc123#/catalog/Bird.pkl")
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
res = import("package://localhost:12110/birds@0.5.0::boguschecksumpart#/catalog/Bird.pkl")
|
||||
res = import("package://localhost:0/birds@0.5.0::boguschecksumpart#/catalog/Bird.pkl")
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// invalid semver
|
||||
res = import("package://localhost:12110/foo@notAVersion#/bar.pkl")
|
||||
res = import("package://localhost:0/foo@notAVersion#/bar.pkl")
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// no fragment
|
||||
res = import("package://localhost:12110/bar/baz@1.0.0")
|
||||
res = import("package://localhost:0/bar/baz@1.0.0")
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// fragment path must be absolute
|
||||
res = import("package://localhost:12110/birds@0.5.0#catalog/Swallow.pkl")
|
||||
res = import("package://localhost:0/birds@0.5.0#catalog/Swallow.pkl")
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
import "package://localhost:12110/badPackageZipUrl@1.0.0#/Bug.pkl"
|
||||
import "package://localhost:0/badPackageZipUrl@1.0.0#/Bug.pkl"
|
||||
|
||||
res: Bug
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
res = import("package://localhost:12110/badMetadataJson@1.0.0#/Bug.pkl")
|
||||
res = import("package://localhost:0/badMetadataJson@1.0.0#/Bug.pkl")
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
res = import("package://localhost:12110/badImportsWithinPackage@1.0.0#/unknownDependency.pkl")
|
||||
res = import("package://localhost:0/badImportsWithinPackage@1.0.0#/unknownDependency.pkl")
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
res = import("package://localhost:12110/badImportsWithinPackage@1.0.0#/invalidPath.pkl")
|
||||
res = import("package://localhost:0/badImportsWithinPackage@1.0.0#/invalidPath.pkl")
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// no semver
|
||||
res = read("package://localhost:12110/foo#/bar.pkl")
|
||||
res = read("package://localhost:0/foo#/bar.pkl")
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// invalid semver
|
||||
res = read("package://localhost:12110/foo@notAVersion#/bar.pkl")
|
||||
res = read("package://localhost:0/foo@notAVersion#/bar.pkl")
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// no fragment
|
||||
res = read("package://localhost:12110/bar/baz@1.0.0")
|
||||
res = read("package://localhost:0/bar/baz@1.0.0")
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
// fragment path must be absolute
|
||||
res = read("package://localhost:12110/birds@0.5.0#catalog/Swallow.pkl")
|
||||
res = read("package://localhost:0/birds@0.5.0#catalog/Swallow.pkl")
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
res = import("package://localhost:12110/badImportsWithinPackage@1.0.0#/unknownDependencyReaad.pkl")
|
||||
res = import("package://localhost:0/badImportsWithinPackage@1.0.0#/unknownDependencyReaad.pkl")
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
res = import("package://localhost:12110/badImportsWithinPackage@1.0.0#/invalidPathReaad.pkl")
|
||||
res = import("package://localhost:0/badImportsWithinPackage@1.0.0#/invalidPathReaad.pkl")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
amends ".../snippetTest.pkl"
|
||||
|
||||
import "package://localhost:12110/birds@0.5.0#/Bird.pkl"
|
||||
import "package://localhost:12110/fruit@1.0.5#/Fruit.pkl"
|
||||
import "package://localhost:0/birds@0.5.0#/Bird.pkl"
|
||||
import "package://localhost:0/fruit@1.0.5#/Fruit.pkl"
|
||||
|
||||
examples {
|
||||
["basic imports"] {
|
||||
@@ -12,15 +12,15 @@ examples {
|
||||
name = "Banana"
|
||||
}
|
||||
}
|
||||
import("package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl")
|
||||
import("package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl")
|
||||
import("package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl")
|
||||
import("package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl")
|
||||
}
|
||||
["importing while specifying checksum"] {
|
||||
import("package://localhost:12110/birds@0.5.0::sha256:3f19ab9fcee2f44f93a75a09e531db278c6d2cd25206836c8c2c4071cd7d3118#/catalog/Swallow.pkl")
|
||||
import("package://localhost:0/birds@0.5.0::sha256:3f19ab9fcee2f44f93a75a09e531db278c6d2cd25206836c8c2c4071cd7d3118#/catalog/Swallow.pkl")
|
||||
}
|
||||
["reads"] {
|
||||
read("package://localhost:12110/birds@0.5.0#/Bird.pkl")
|
||||
read("package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl")
|
||||
read("package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl")
|
||||
read("package://localhost:0/birds@0.5.0#/Bird.pkl")
|
||||
read("package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl")
|
||||
read("package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,24 +2,24 @@ amends ".../snippetTest.pkl"
|
||||
|
||||
examples {
|
||||
["glob import"] {
|
||||
import*("package://localhost:12110/birds@0.5.0#/catalog/*.pkl")
|
||||
import*("package://localhost:0/birds@0.5.0#/catalog/*.pkl")
|
||||
}
|
||||
["glob import within package"] {
|
||||
import("package://localhost:12110/birds@0.5.0#/catalog.pkl").catalog
|
||||
import("package://localhost:0/birds@0.5.0#/catalog.pkl").catalog
|
||||
}
|
||||
["glob import transitive dep within package"] {
|
||||
import("package://localhost:12110/birds@0.5.0#/allFruit.pkl").fruit
|
||||
import("package://localhost:0/birds@0.5.0#/allFruit.pkl").fruit
|
||||
}
|
||||
["glob read"] {
|
||||
read*("package://localhost:12110/birds@0.5.0#/catalog/*.pkl")
|
||||
read*("package://localhost:0/birds@0.5.0#/catalog/*.pkl")
|
||||
}
|
||||
["glob read within package"] {
|
||||
import("package://localhost:12110/birds@0.5.0#/catalog.pkl").catalogFiles
|
||||
import("package://localhost:0/birds@0.5.0#/catalog.pkl").catalogFiles
|
||||
}
|
||||
["glob read transitive dep within package"] {
|
||||
import("package://localhost:12110/birds@0.5.0#/allFruit.pkl").fruitFiles
|
||||
import("package://localhost:0/birds@0.5.0#/allFruit.pkl").fruitFiles
|
||||
}
|
||||
["glob import while specifying checksum"] {
|
||||
import*("package://localhost:12110/birds@0.5.0::sha256:3f19ab9fcee2f44f93a75a09e531db278c6d2cd25206836c8c2c4071cd7d3118#/catalog/*.pkl")
|
||||
import*("package://localhost:0/birds@0.5.0::sha256:3f19ab9fcee2f44f93a75a09e531db278c6d2cd25206836c8c2c4071cd7d3118#/catalog/*.pkl")
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ amends "pkl:Project"
|
||||
|
||||
dependencies {
|
||||
["birds"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ amends "pkl:Project"
|
||||
|
||||
dependencies {
|
||||
["birds"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ amends "pkl:Project"
|
||||
|
||||
dependencies {
|
||||
["birds"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,6 +3,6 @@ amends "pkl:Project"
|
||||
dependencies {
|
||||
["birds"] {
|
||||
// Should fail because dependency is out of date (PklProject.deps.json version is older)
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+4
-4
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"resolvedDependencies": {
|
||||
"package://localhost:12110/birds@0": {
|
||||
"package://localhost:0/birds@0": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/birds@0.5.0",
|
||||
"uri": "projectpackage://localhost:0/birds@0.5.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
},
|
||||
"package://localhost:12110/fruit@1": {
|
||||
"package://localhost:0/fruit@1": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/fruit@1.0.0",
|
||||
"uri": "projectpackage://localhost:0/fruit@1.0.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,6 +3,6 @@ amends "pkl:Project"
|
||||
dependencies {
|
||||
["birds"] {
|
||||
// out of date because PklProject declares version 0.5.0
|
||||
uri = "package://localhost:12110/birds@0.8.0"
|
||||
uri = "package://localhost:0/birds@0.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+4
-4
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"resolvedDependencies": {
|
||||
"package://localhost:12110/birds@0": {
|
||||
"package://localhost:0/birds@0": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/birds@0.5.0",
|
||||
"uri": "projectpackage://localhost:0/birds@0.5.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
},
|
||||
"package://localhost:12110/fruit@1": {
|
||||
"package://localhost:0/fruit@1": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/fruit@1.1.0",
|
||||
"uri": "projectpackage://localhost:0/fruit@1.1.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ amends "pkl:Project"
|
||||
|
||||
dependencies {
|
||||
["birds"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -2,13 +2,13 @@ amends "pkl:Project"
|
||||
|
||||
dependencies {
|
||||
["birds"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
}
|
||||
["fruits"] {
|
||||
uri = "package://localhost:12110/fruit@1.1.0"
|
||||
uri = "package://localhost:0/fruit@1.1.0"
|
||||
}
|
||||
["badImportsWithinPackage"] {
|
||||
uri = "package://localhost:12110/badImportsWithinPackage@1.0.0"
|
||||
uri = "package://localhost:0/badImportsWithinPackage@1.0.0"
|
||||
}
|
||||
["project2"] = import("../project2/PklProject")
|
||||
}
|
||||
|
||||
+8
-8
@@ -1,28 +1,28 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"resolvedDependencies": {
|
||||
"package://localhost:12110/birds@0": {
|
||||
"package://localhost:0/birds@0": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/birds@0.5.0",
|
||||
"uri": "projectpackage://localhost:0/birds@0.5.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
},
|
||||
"package://localhost:12110/fruit@1": {
|
||||
"package://localhost:0/fruit@1": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/fruit@1.1.0",
|
||||
"uri": "projectpackage://localhost:0/fruit@1.1.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
},
|
||||
"package://localhost:12110/project2@1": {
|
||||
"package://localhost:0/project2@1": {
|
||||
"type": "local",
|
||||
"uri": "projectpackage://localhost:12110/project2@1.0.0",
|
||||
"uri": "projectpackage://localhost:0/project2@1.0.0",
|
||||
"path": "../project2/"
|
||||
},
|
||||
"package://localhost:12110/badImportsWithinPackage@1": {
|
||||
"package://localhost:0/badImportsWithinPackage@1": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/badImportsWithinPackage@1.0.0",
|
||||
"uri": "projectpackage://localhost:0/badImportsWithinPackage@1.0.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
|
||||
+4
-4
@@ -22,16 +22,16 @@ examples {
|
||||
|
||||
facts {
|
||||
["package-relative dependency is not same import as absolute URI dependency"] {
|
||||
import("@birds/Bird.pkl") != import("package://localhost:12110/birds@0.5.0#/Bird.pkl")
|
||||
import("@birds/Bird.pkl") != import("package://localhost:0/birds@0.5.0#/Bird.pkl")
|
||||
}
|
||||
["package-relative dependency has scheme projectpackage"] {
|
||||
import("@birds/Bird.pkl") == import("projectpackage://localhost:12110/birds@0.5.0#/Bird.pkl")
|
||||
import("@birds/Bird.pkl") == import("projectpackage://localhost:0/birds@0.5.0#/Bird.pkl")
|
||||
}
|
||||
["transitive import resolves to same dependency as direct dependency import"] {
|
||||
Swallow.favoriteFruit == import("@fruits/catalog/apple.pkl")
|
||||
}
|
||||
["transitive import resolves to same dependency as projectpackage import"] {
|
||||
Swallow.favoriteFruit == import("projectpackage://localhost:12110/fruit@1.1.0#/catalog/apple.pkl")
|
||||
Swallow.favoriteFruit != import("projectpackage://localhost:12110/fruit@1.0.5#/catalog/apple.pkl")
|
||||
Swallow.favoriteFruit == import("projectpackage://localhost:0/fruit@1.1.0#/catalog/apple.pkl")
|
||||
Swallow.favoriteFruit != import("projectpackage://localhost:0/fruit@1.0.5#/catalog/apple.pkl")
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@ examples {
|
||||
}
|
||||
|
||||
["glob-import absolute package uri"] {
|
||||
import*("package://localhost:12110/birds@0.5.0#/catalog/*.pkl")
|
||||
import*("package://localhost:0/birds@0.5.0#/catalog/*.pkl")
|
||||
}
|
||||
|
||||
["glob-import local project"] {
|
||||
@@ -32,6 +32,6 @@ examples {
|
||||
}
|
||||
|
||||
["glob-read absolute package uri"] {
|
||||
read*("package://localhost:12110/birds@0.5.0#/catalog/*.pkl")
|
||||
read*("package://localhost:0/birds@0.5.0#/catalog/*.pkl")
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -2,13 +2,13 @@ amends "pkl:Project"
|
||||
|
||||
package {
|
||||
name = "project2"
|
||||
baseUri = "package://localhost:12110/project2"
|
||||
baseUri = "package://localhost:0/project2"
|
||||
version = "1.0.0"
|
||||
packageZipUrl = "https://localhost:12110/project2/project2-\(version).zip"
|
||||
packageZipUrl = "https://localhost:0/project2/project2-\(version).zip"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
["burds"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"resolvedDependencies": {
|
||||
"package://localhost:12110/birds@0": {
|
||||
"package://localhost:0/birds@0": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/birds@0.5.0",
|
||||
"uri": "projectpackage://localhost:0/birds@0.5.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
},
|
||||
"package://localhost:12110/fruit@1": {
|
||||
"package://localhost:0/fruit@1": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/fruit@1.1.0",
|
||||
"uri": "projectpackage://localhost:0/fruit@1.1.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
|
||||
+8
-8
@@ -1,28 +1,28 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"resolvedDependencies": {
|
||||
"package://localhost:12110/birds@0": {
|
||||
"package://localhost:0/birds@0": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/birds@0.5.0",
|
||||
"uri": "projectpackage://localhost:0/birds@0.5.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
},
|
||||
"package://localhost:12110/fruit@1": {
|
||||
"package://localhost:0/fruit@1": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/fruit@1.1.0",
|
||||
"uri": "projectpackage://localhost:0/fruit@1.1.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
},
|
||||
"package://localhost:12110/project2@1": {
|
||||
"package://localhost:0/project2@1": {
|
||||
"type": "local",
|
||||
"uri": "projectpackage://localhost:12110/project2@1.0.0",
|
||||
"uri": "projectpackage://localhost:0/project2@1.0.0",
|
||||
"path": "../project2/"
|
||||
},
|
||||
"package://localhost:12110/badImportsWithinPackage@1": {
|
||||
"package://localhost:0/badImportsWithinPackage@1": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/badImportsWithinPackage@1.0.0",
|
||||
"uri": "projectpackage://localhost:0/badImportsWithinPackage@1.0.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,6 +3,6 @@ amends "pkl:Project"
|
||||
dependencies {
|
||||
["fruit"] {
|
||||
// need to manually keep the checksum in `PklProject.deps.json` in sync
|
||||
uri = "package://localhost:12110/fruit@1.0.5"
|
||||
uri = "package://localhost:0/fruit@1.0.5"
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"resolvedDependencies": {
|
||||
"package://localhost:12110/fruit@1": {
|
||||
"package://localhost:0/fruit@1": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/fruit@1.0.5",
|
||||
"uri": "projectpackage://localhost:0/fruit@1.0.5",
|
||||
"checksums": {
|
||||
"sha256": "abd173e8a25f5b930b0e34269a441e32c9d95e0b0a715bc6eff918f0afd0688e"
|
||||
"sha256": "34a15b02346e6acb85da5bd71d8b0738a79008b38a7fc805e5869d9129ad27d2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import "pkl:reflect"
|
||||
myProject: Project = (Project.newInstance(module)) {
|
||||
dependencies {
|
||||
["birds"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"resolvedDependencies": {
|
||||
"package://localhost:12110/birds@0": {
|
||||
"package://localhost:0/birds@0": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/birds@0.5.0",
|
||||
"uri": "projectpackage://localhost:0/birds@0.5.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
},
|
||||
"package://localhost:12110/fruit@1": {
|
||||
"package://localhost:0/fruit@1": {
|
||||
"type": "remote",
|
||||
"uri": "projectpackage://localhost:12110/fruit@1.1.0",
|
||||
"uri": "projectpackage://localhost:0/fruit@1.1.0",
|
||||
"checksums": {
|
||||
"sha256": "$skipChecksumVerification"
|
||||
}
|
||||
|
||||
@@ -69,13 +69,13 @@ examples {
|
||||
}
|
||||
["package"] {
|
||||
new {
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
name = "Ostritch"
|
||||
favoriteFruit {
|
||||
name = "Orange"
|
||||
}
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
name = "Swallow"
|
||||
favoriteFruit {
|
||||
name = "Apple"
|
||||
@@ -83,31 +83,31 @@ examples {
|
||||
}
|
||||
}
|
||||
new {
|
||||
"package://localhost:12110/birds@0.5.0#/Bird.pkl"
|
||||
"package://localhost:12110/birds@0.5.0#/allFruit.pkl"
|
||||
"package://localhost:12110/birds@0.5.0#/catalog.pkl"
|
||||
"package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
"package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
"package://localhost:12110/birds@0.5.0#/some/dir/Bird.pkl"
|
||||
"package://localhost:0/birds@0.5.0#/Bird.pkl"
|
||||
"package://localhost:0/birds@0.5.0#/allFruit.pkl"
|
||||
"package://localhost:0/birds@0.5.0#/catalog.pkl"
|
||||
"package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
"package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
"package://localhost:0/birds@0.5.0#/some/dir/Bird.pkl"
|
||||
}
|
||||
}
|
||||
["globbing with absolute URIs and percent encoding"] {
|
||||
new {
|
||||
["package://localhost:12110/packageContainingWildcardCharacters@1.0.0#/name%20with%20%5Bwildcard%5D!%20characters~~.pkl"] {}
|
||||
["package://localhost:0/packageContainingWildcardCharacters@1.0.0#/name%20with%20%5Bwildcard%5D!%20characters~~.pkl"] {}
|
||||
}
|
||||
new {
|
||||
["package://localhost:12110/packageContainingWildcardCharacters@1.0.0#/name%20with%20%5Bwildcard%5D!%20characters~~.pkl"] {}
|
||||
["package://localhost:0/packageContainingWildcardCharacters@1.0.0#/name%20with%20%5Bwildcard%5D!%20characters~~.pkl"] {}
|
||||
}
|
||||
}
|
||||
["package glob and up one level"] {
|
||||
new {
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/../catalog/Ostritch.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0#/catalog/../catalog/Ostritch.pkl"] {
|
||||
name = "Ostritch"
|
||||
favoriteFruit {
|
||||
name = "Orange"
|
||||
}
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/../catalog/Swallow.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0#/catalog/../catalog/Swallow.pkl"] {
|
||||
name = "Swallow"
|
||||
favoriteFruit {
|
||||
name = "Apple"
|
||||
|
||||
@@ -96,8 +96,8 @@ examples {
|
||||
}
|
||||
["package:"] {
|
||||
new {
|
||||
["package://localhost:12110/birds@0.5.0#/Bird.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/Bird.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/Bird.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/Bird.pkl"
|
||||
text = """
|
||||
open module birds.Bird
|
||||
|
||||
@@ -110,8 +110,8 @@ examples {
|
||||
"""
|
||||
base64 = "b3BlbiBtb2R1bGUgYmlyZHMuQmlyZAoKaW1wb3J0ICJAZnJ1aXRpZXMvRnJ1aXQucGtsIgoKbmFtZTogU3RyaW5nCgpmYXZvcml0ZUZydWl0OiBGcnVpdAo="
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/allFruit.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/allFruit.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/allFruit.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/allFruit.pkl"
|
||||
text = """
|
||||
module birds.allFruit
|
||||
|
||||
@@ -121,8 +121,8 @@ examples {
|
||||
"""
|
||||
base64 = "bW9kdWxlIGJpcmRzLmFsbEZydWl0CgpmcnVpdCA9IGltcG9ydCooIkBmcnVpdGllcy9jYXRhbG9nLyoucGtsIikKZnJ1aXRGaWxlcyA9IHJlYWQqKCJAZnJ1aXRpZXMvY2F0YWxvZy8qLnBrbCIpCg=="
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/catalog.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/catalog.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog.pkl"
|
||||
text = """
|
||||
module birds.catalog
|
||||
|
||||
@@ -132,8 +132,8 @@ examples {
|
||||
"""
|
||||
base64 = "bW9kdWxlIGJpcmRzLmNhdGFsb2cKCmNhdGFsb2cgPSBpbXBvcnQqKCJjYXRhbG9nLyoucGtsIikKY2F0YWxvZ0ZpbGVzID0gcmVhZCooImNhdGFsb2cvKi5wa2wiKQo="
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -146,8 +146,8 @@ examples {
|
||||
"""
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCm5hbWUgPSAiT3N0cml0Y2giCgpmYXZvcml0ZUZydWl0IHsKICBuYW1lID0gIk9yYW5nZSIKfQo="
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -160,8 +160,8 @@ examples {
|
||||
"""
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCmltcG9ydCAiQGZydWl0aWVzL2NhdGFsb2cvYXBwbGUucGtsIgoKbmFtZSA9ICJTd2FsbG93IgoKZmF2b3JpdGVGcnVpdCA9IGFwcGxlCg=="
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/some/dir/Bird.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/some/dir/Bird.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/some/dir/Bird.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/some/dir/Bird.pkl"
|
||||
text = """
|
||||
amends "..."
|
||||
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Module URI `package://localhost:12110/foo#/bar.pkl` has invalid syntax.
|
||||
Module URI `package://localhost:0/foo#/bar.pkl` has invalid syntax.
|
||||
|
||||
x | res = import("package://localhost:12110/foo#/bar.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = import("package://localhost:0/foo#/bar.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badImport1.error#res (file:///$snippetsDir/input/packages/badImport1.error.pkl)
|
||||
|
||||
Invalid path `/foo`.
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Module URI `package://localhost:12110/birds@0.5.0::invalidalgo:abc123#/catalog/Bird.pkl` has invalid syntax.
|
||||
Module URI `package://localhost:0/birds@0.5.0::invalidalgo:abc123#/catalog/Bird.pkl` has invalid syntax.
|
||||
|
||||
x | res = import("package://localhost:12110/birds@0.5.0::invalidalgo:abc123#/catalog/Bird.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = import("package://localhost:0/birds@0.5.0::invalidalgo:abc123#/catalog/Bird.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badImport10.error#res (file:///$snippetsDir/input/packages/badImport10.error.pkl)
|
||||
|
||||
Unrecognized checksum algorithm: `invalidalgo`.
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Module URI `package://localhost:12110/birds@0.5.0::boguschecksumpart#/catalog/Bird.pkl` has invalid syntax.
|
||||
Module URI `package://localhost:0/birds@0.5.0::boguschecksumpart#/catalog/Bird.pkl` has invalid syntax.
|
||||
|
||||
x | res = import("package://localhost:12110/birds@0.5.0::boguschecksumpart#/catalog/Bird.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = import("package://localhost:0/birds@0.5.0::boguschecksumpart#/catalog/Bird.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badImport11.error#res (file:///$snippetsDir/input/packages/badImport11.error.pkl)
|
||||
|
||||
Invalid checksum specification: `boguschecksumpart`.
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Module URI `package://localhost:12110/foo@notAVersion#/bar.pkl` has invalid syntax.
|
||||
Module URI `package://localhost:0/foo@notAVersion#/bar.pkl` has invalid syntax.
|
||||
|
||||
x | res = import("package://localhost:12110/foo@notAVersion#/bar.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = import("package://localhost:0/foo@notAVersion#/bar.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badImport2.error#res (file:///$snippetsDir/input/packages/badImport2.error.pkl)
|
||||
|
||||
`notAVersion` could not be parsed as a semantic version number.
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Module URI `package://localhost:12110/bar/baz@1.0.0` has invalid syntax.
|
||||
Module URI `package://localhost:0/bar/baz@1.0.0` has invalid syntax.
|
||||
|
||||
x | res = import("package://localhost:12110/bar/baz@1.0.0")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = import("package://localhost:0/bar/baz@1.0.0")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badImport3.error#res (file:///$snippetsDir/input/packages/badImport3.error.pkl)
|
||||
|
||||
Expected URI to contain a fragment.
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Module URI `package://localhost:12110/birds@0.5.0#catalog/Swallow.pkl` has invalid syntax.
|
||||
Module URI `package://localhost:0/birds@0.5.0#catalog/Swallow.pkl` has invalid syntax.
|
||||
|
||||
x | res = import("package://localhost:12110/birds@0.5.0#catalog/Swallow.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = import("package://localhost:0/birds@0.5.0#catalog/Swallow.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badImport4.error#res (file:///$snippetsDir/input/packages/badImport4.error.pkl)
|
||||
|
||||
Cannot have a relative fragment path `catalog/Swallow.pkl`.
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Expected the zip asset for package `package://localhost:12110/badPackageZipUrl@1.0.0` to be an HTTPS URI, but got `ftp://wait/a/minute`.
|
||||
Expected the zip asset for package `package://localhost:0/badPackageZipUrl@1.0.0` to be an HTTPS URI, but got `ftp://wait/a/minute`.
|
||||
|
||||
x | import "package://localhost:12110/badPackageZipUrl@1.0.0#/Bug.pkl"
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | import "package://localhost:0/badPackageZipUrl@1.0.0#/Bug.pkl"
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badImport6.error#Bug (file:///$snippetsDir/input/packages/badImport6.error.pkl)
|
||||
|
||||
x | res: Bug
|
||||
|
||||
+3
-3
@@ -1,13 +1,13 @@
|
||||
–– Pkl Error ––
|
||||
Received invalid dependency metadata for package `package://localhost:12110/badMetadataJson@1.0.0` when making request `GET https://localhost:12110/badMetadataJson@1.0.0`:
|
||||
Received invalid dependency metadata for package `package://localhost:0/badMetadataJson@1.0.0` when making request `GET https://localhost:0/badMetadataJson@1.0.0`:
|
||||
Malformed JSON: Expected 'r' at 1:2.
|
||||
|
||||
Original input:
|
||||
`this is not json
|
||||
`
|
||||
|
||||
x | res = import("package://localhost:12110/badMetadataJson@1.0.0#/Bug.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = import("package://localhost:0/badMetadataJson@1.0.0#/Bug.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badImport7.error#res (file:///$snippetsDir/input/packages/badImport7.error.pkl)
|
||||
|
||||
xxx | text = renderer.renderDocument(value)
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
–– Pkl Error ––
|
||||
Cannot find dependency named `fruits`, because it was not declared in package `package://localhost:12110/badImportsWithinPackage@1.0.0`.
|
||||
Cannot find dependency named `fruits`, because it was not declared in package `package://localhost:0/badImportsWithinPackage@1.0.0`.
|
||||
|
||||
x | res = import("@fruits/Foo.pkl")
|
||||
^^^^^^^^^^^^^^^^^
|
||||
at badImport8.error#res (package://localhost:12110/badImportsWithinPackage@1.0.0#/unknownDependency.pkl)
|
||||
at badImport8.error#res (package://localhost:0/badImportsWithinPackage@1.0.0#/unknownDependency.pkl)
|
||||
|
||||
xxx | text = renderer.renderDocument(value)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
–– Pkl Error ––
|
||||
Cannot find module `package://localhost:12110/badImportsWithinPackage@1.0.0#/not/a/valid/path.pkl`.
|
||||
Cannot find module `package://localhost:0/badImportsWithinPackage@1.0.0#/not/a/valid/path.pkl`.
|
||||
|
||||
x | res = import("not/a/valid/path.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at invalidPath#res (package://localhost:12110/badImportsWithinPackage@1.0.0#/invalidPath.pkl)
|
||||
at invalidPath#res (package://localhost:0/badImportsWithinPackage@1.0.0#/invalidPath.pkl)
|
||||
|
||||
xxx | text = renderer.renderDocument(value)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Resource URI `package://localhost:12110/foo#/bar.pkl` has invalid syntax.
|
||||
Resource URI `package://localhost:0/foo#/bar.pkl` has invalid syntax.
|
||||
|
||||
x | res = read("package://localhost:12110/foo#/bar.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = read("package://localhost:0/foo#/bar.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badRead1.error#res (file:///$snippetsDir/input/packages/badRead1.error.pkl)
|
||||
|
||||
Invalid path `/foo`.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Resource URI `package://localhost:12110/foo@notAVersion#/bar.pkl` has invalid syntax.
|
||||
Resource URI `package://localhost:0/foo@notAVersion#/bar.pkl` has invalid syntax.
|
||||
|
||||
x | res = read("package://localhost:12110/foo@notAVersion#/bar.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = read("package://localhost:0/foo@notAVersion#/bar.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badRead2.error#res (file:///$snippetsDir/input/packages/badRead2.error.pkl)
|
||||
|
||||
`notAVersion` could not be parsed as a semantic version number.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Resource URI `package://localhost:12110/bar/baz@1.0.0` has invalid syntax.
|
||||
Resource URI `package://localhost:0/bar/baz@1.0.0` has invalid syntax.
|
||||
|
||||
x | res = read("package://localhost:12110/bar/baz@1.0.0")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = read("package://localhost:0/bar/baz@1.0.0")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badRead3.error#res (file:///$snippetsDir/input/packages/badRead3.error.pkl)
|
||||
|
||||
Expected URI to contain a fragment.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Resource URI `package://localhost:12110/birds@0.5.0#catalog/Swallow.pkl` has invalid syntax.
|
||||
Resource URI `package://localhost:0/birds@0.5.0#catalog/Swallow.pkl` has invalid syntax.
|
||||
|
||||
x | res = read("package://localhost:12110/birds@0.5.0#catalog/Swallow.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = read("package://localhost:0/birds@0.5.0#catalog/Swallow.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badRead4.error#res (file:///$snippetsDir/input/packages/badRead4.error.pkl)
|
||||
|
||||
Cannot have a relative fragment path `catalog/Swallow.pkl`.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Cannot find module `package://localhost:12110/badImportsWithinPackage@1.0.0#/unknownDependencyReaad.pkl`.
|
||||
Cannot find module `package://localhost:0/badImportsWithinPackage@1.0.0#/unknownDependencyReaad.pkl`.
|
||||
|
||||
x | res = import("package://localhost:12110/badImportsWithinPackage@1.0.0#/unknownDependencyReaad.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = import("package://localhost:0/badImportsWithinPackage@1.0.0#/unknownDependencyReaad.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badRead8.error#res (file:///$snippetsDir/input/packages/badRead8.error.pkl)
|
||||
|
||||
xxx | text = renderer.renderDocument(value)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Cannot find module `package://localhost:12110/badImportsWithinPackage@1.0.0#/invalidPathReaad.pkl`.
|
||||
Cannot find module `package://localhost:0/badImportsWithinPackage@1.0.0#/invalidPathReaad.pkl`.
|
||||
|
||||
x | res = import("package://localhost:12110/badImportsWithinPackage@1.0.0#/invalidPathReaad.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
x | res = import("package://localhost:0/badImportsWithinPackage@1.0.0#/invalidPathReaad.pkl")
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at badRead9.error#res (file:///$snippetsDir/input/packages/badRead9.error.pkl)
|
||||
|
||||
xxx | text = renderer.renderDocument(value)
|
||||
|
||||
@@ -29,7 +29,7 @@ examples {
|
||||
}
|
||||
["reads"] {
|
||||
new {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/Bird.pkl"
|
||||
uri = "package://localhost:0/birds@0.5.0#/Bird.pkl"
|
||||
text = """
|
||||
open module birds.Bird
|
||||
|
||||
@@ -43,7 +43,7 @@ examples {
|
||||
base64 = "b3BlbiBtb2R1bGUgYmlyZHMuQmlyZAoKaW1wb3J0ICJAZnJ1aXRpZXMvRnJ1aXQucGtsIgoKbmFtZTogU3RyaW5nCgpmYXZvcml0ZUZydWl0OiBGcnVpdAo="
|
||||
}
|
||||
new {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -57,7 +57,7 @@ examples {
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCmltcG9ydCAiQGZydWl0aWVzL2NhdGFsb2cvYXBwbGUucGtsIgoKbmFtZSA9ICJTd2FsbG93IgoKZmF2b3JpdGVGcnVpdCA9IGFwcGxlCg=="
|
||||
}
|
||||
new {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
|
||||
+11
-11
@@ -1,13 +1,13 @@
|
||||
examples {
|
||||
["glob import"] {
|
||||
new {
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
name = "Ostritch"
|
||||
favoriteFruit {
|
||||
name = "Orange"
|
||||
}
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
name = "Swallow"
|
||||
favoriteFruit {
|
||||
name = "Apple"
|
||||
@@ -40,8 +40,8 @@ examples {
|
||||
}
|
||||
["glob read"] {
|
||||
new {
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -54,8 +54,8 @@ examples {
|
||||
"""
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCm5hbWUgPSAiT3N0cml0Y2giCgpmYXZvcml0ZUZydWl0IHsKICBuYW1lID0gIk9yYW5nZSIKfQo="
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -73,7 +73,7 @@ examples {
|
||||
["glob read within package"] {
|
||||
new {
|
||||
["catalog/Ostritch.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -87,7 +87,7 @@ examples {
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCm5hbWUgPSAiT3N0cml0Y2giCgpmYXZvcml0ZUZydWl0IHsKICBuYW1lID0gIk9yYW5nZSIKfQo="
|
||||
}
|
||||
["catalog/Swallow.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -105,7 +105,7 @@ examples {
|
||||
["glob read transitive dep within package"] {
|
||||
new {
|
||||
["@fruities/catalog/apple.pkl"] {
|
||||
uri = "package://localhost:12110/fruit@1.0.5#/catalog/apple.pkl"
|
||||
uri = "package://localhost:0/fruit@1.0.5#/catalog/apple.pkl"
|
||||
text = """
|
||||
amends "../Fruit.pkl"
|
||||
|
||||
@@ -118,13 +118,13 @@ examples {
|
||||
}
|
||||
["glob import while specifying checksum"] {
|
||||
new {
|
||||
["package://localhost:12110/birds@0.5.0::sha256:3f19ab9fcee2f44f93a75a09e531db278c6d2cd25206836c8c2c4071cd7d3118#/catalog/Ostritch.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0::sha256:3f19ab9fcee2f44f93a75a09e531db278c6d2cd25206836c8c2c4071cd7d3118#/catalog/Ostritch.pkl"] {
|
||||
name = "Ostritch"
|
||||
favoriteFruit {
|
||||
name = "Orange"
|
||||
}
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0::sha256:3f19ab9fcee2f44f93a75a09e531db278c6d2cd25206836c8c2c4071cd7d3118#/catalog/Swallow.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0::sha256:3f19ab9fcee2f44f93a75a09e531db278c6d2cd25206836c8c2c4071cd7d3118#/catalog/Swallow.pkl"] {
|
||||
name = "Swallow"
|
||||
favoriteFruit {
|
||||
name = "Apple"
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
Did not find a resolved dependency for package `package://localhost:12110/birds@0.5.0`.
|
||||
Did not find a resolved dependency for package `package://localhost:0/birds@0.5.0`.
|
||||
|
||||
Run `pkl project resolve` to update resolved dependencies.
|
||||
|
||||
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
–– Pkl Error ––
|
||||
Transitive dependency declared by package `package://localhost:12110/birds@0.5.0` is newer than what is declared in `PklProject.deps.json`.
|
||||
Transitive dependency declared by package `package://localhost:0/birds@0.5.0` is newer than what is declared in `PklProject.deps.json`.
|
||||
|
||||
Declared: `package://localhost:12110/fruit@1.0.5`
|
||||
Resolved: `package://localhost:12110/fruit@1.0.0`
|
||||
Declared: `package://localhost:0/fruit@1.0.5`
|
||||
Resolved: `package://localhost:0/fruit@1.0.0`
|
||||
|
||||
Run `pkl project resolve` to update resolved dependencies.
|
||||
|
||||
x | import "@fruities/Fruit.pkl"
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
at bug#Bird (projectpackage://localhost:12110/birds@0.5.0#/Bird.pkl)
|
||||
at bug#Bird (projectpackage://localhost:0/birds@0.5.0#/Bird.pkl)
|
||||
|
||||
x | bird: Bird
|
||||
^^^^
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Project `file:///$snippetsDir/input/projects/badProjectDeps6/PklProject` declares a dependency on a package that is newer than what is declared in `PklProject.deps.json`.
|
||||
|
||||
Declared: `package://localhost:12110/birds@0.8.0`
|
||||
Resolved: `package://localhost:12110/birds@0.5.0`
|
||||
Declared: `package://localhost:0/birds@0.8.0`
|
||||
Resolved: `package://localhost:0/birds@0.5.0`
|
||||
|
||||
Run `pkl project resolve` to update resolved dependencies.
|
||||
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
–– Pkl Error ––
|
||||
Cannot find dependency named `fruits`, because it was not declared in package `package://localhost:12110/badImportsWithinPackage@1.0.0`.
|
||||
Cannot find dependency named `fruits`, because it was not declared in package `package://localhost:0/badImportsWithinPackage@1.0.0`.
|
||||
|
||||
x | res = import("@fruits/Foo.pkl")
|
||||
^^^^^^^^^^^^^^^^^
|
||||
at badImport3.error#res (projectpackage://localhost:12110/badImportsWithinPackage@1.0.0#/unknownDependency.pkl)
|
||||
at badImport3.error#res (projectpackage://localhost:0/badImportsWithinPackage@1.0.0#/unknownDependency.pkl)
|
||||
|
||||
xxx | text = renderer.renderDocument(value)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
+2
-2
@@ -38,7 +38,7 @@ examples {
|
||||
}
|
||||
["reading directories"] {
|
||||
new {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/catalog"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/catalog"
|
||||
text = """
|
||||
Ostritch.pkl
|
||||
Swallow.pkl
|
||||
@@ -47,7 +47,7 @@ examples {
|
||||
base64 = "T3N0cml0Y2gucGtsClN3YWxsb3cucGtsCg=="
|
||||
}
|
||||
new {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/"
|
||||
text = """
|
||||
Bird.pkl
|
||||
allFruit.pkl
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
I/O error loading module `projectpackage://localhost:12110/birds@0.5.0#/`.
|
||||
I/O error loading module `projectpackage://localhost:0/birds@0.5.0#/`.
|
||||
IOException: Is a directory
|
||||
|
||||
x | res = import("@birds")
|
||||
|
||||
+19
-19
@@ -17,13 +17,13 @@ examples {
|
||||
}
|
||||
["glob-import absolute package uri"] {
|
||||
new {
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
name = "Ostritch"
|
||||
favoriteFruit {
|
||||
name = "Orange"
|
||||
}
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
name = "Swallow"
|
||||
favoriteFruit {
|
||||
name = "Apple"
|
||||
@@ -42,7 +42,7 @@ examples {
|
||||
["glob-read using dependency notation"] {
|
||||
new {
|
||||
["@birds/catalog/Ostritch.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -56,7 +56,7 @@ examples {
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCm5hbWUgPSAiT3N0cml0Y2giCgpmYXZvcml0ZUZydWl0IHsKICBuYW1lID0gIk9yYW5nZSIKfQo="
|
||||
}
|
||||
["@birds/catalog/Swallow.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -72,7 +72,7 @@ examples {
|
||||
}
|
||||
new {
|
||||
["@birds/Bird.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/Bird.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/Bird.pkl"
|
||||
text = """
|
||||
open module birds.Bird
|
||||
|
||||
@@ -86,7 +86,7 @@ examples {
|
||||
base64 = "b3BlbiBtb2R1bGUgYmlyZHMuQmlyZAoKaW1wb3J0ICJAZnJ1aXRpZXMvRnJ1aXQucGtsIgoKbmFtZTogU3RyaW5nCgpmYXZvcml0ZUZydWl0OiBGcnVpdAo="
|
||||
}
|
||||
["@birds/allFruit.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/allFruit.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/allFruit.pkl"
|
||||
text = """
|
||||
module birds.allFruit
|
||||
|
||||
@@ -97,7 +97,7 @@ examples {
|
||||
base64 = "bW9kdWxlIGJpcmRzLmFsbEZydWl0CgpmcnVpdCA9IGltcG9ydCooIkBmcnVpdGllcy9jYXRhbG9nLyoucGtsIikKZnJ1aXRGaWxlcyA9IHJlYWQqKCJAZnJ1aXRpZXMvY2F0YWxvZy8qLnBrbCIpCg=="
|
||||
}
|
||||
["@birds/catalog.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/catalog.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/catalog.pkl"
|
||||
text = """
|
||||
module birds.catalog
|
||||
|
||||
@@ -110,7 +110,7 @@ examples {
|
||||
}
|
||||
new {
|
||||
["@birds/Bird.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/Bird.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/Bird.pkl"
|
||||
text = """
|
||||
open module birds.Bird
|
||||
|
||||
@@ -124,7 +124,7 @@ examples {
|
||||
base64 = "b3BlbiBtb2R1bGUgYmlyZHMuQmlyZAoKaW1wb3J0ICJAZnJ1aXRpZXMvRnJ1aXQucGtsIgoKbmFtZTogU3RyaW5nCgpmYXZvcml0ZUZydWl0OiBGcnVpdAo="
|
||||
}
|
||||
["@birds/allFruit.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/allFruit.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/allFruit.pkl"
|
||||
text = """
|
||||
module birds.allFruit
|
||||
|
||||
@@ -135,7 +135,7 @@ examples {
|
||||
base64 = "bW9kdWxlIGJpcmRzLmFsbEZydWl0CgpmcnVpdCA9IGltcG9ydCooIkBmcnVpdGllcy9jYXRhbG9nLyoucGtsIikKZnJ1aXRGaWxlcyA9IHJlYWQqKCJAZnJ1aXRpZXMvY2F0YWxvZy8qLnBrbCIpCg=="
|
||||
}
|
||||
["@birds/catalog.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/catalog.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/catalog.pkl"
|
||||
text = """
|
||||
module birds.catalog
|
||||
|
||||
@@ -146,7 +146,7 @@ examples {
|
||||
base64 = "bW9kdWxlIGJpcmRzLmNhdGFsb2cKCmNhdGFsb2cgPSBpbXBvcnQqKCJjYXRhbG9nLyoucGtsIikKY2F0YWxvZ0ZpbGVzID0gcmVhZCooImNhdGFsb2cvKi5wa2wiKQo="
|
||||
}
|
||||
["@birds/catalog/Ostritch.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -160,7 +160,7 @@ examples {
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCm5hbWUgPSAiT3N0cml0Y2giCgpmYXZvcml0ZUZydWl0IHsKICBuYW1lID0gIk9yYW5nZSIKfQo="
|
||||
}
|
||||
["@birds/catalog/Swallow.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -174,7 +174,7 @@ examples {
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCmltcG9ydCAiQGZydWl0aWVzL2NhdGFsb2cvYXBwbGUucGtsIgoKbmFtZSA9ICJTd2FsbG93IgoKZmF2b3JpdGVGcnVpdCA9IGFwcGxlCg=="
|
||||
}
|
||||
["@birds/some/dir/Bird.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/some/dir/Bird.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/some/dir/Bird.pkl"
|
||||
text = """
|
||||
amends "..."
|
||||
|
||||
@@ -192,7 +192,7 @@ examples {
|
||||
["glob-read within package"] {
|
||||
new {
|
||||
["catalog/Ostritch.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -206,7 +206,7 @@ examples {
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCm5hbWUgPSAiT3N0cml0Y2giCgpmYXZvcml0ZUZydWl0IHsKICBuYW1lID0gIk9yYW5nZSIKfQo="
|
||||
}
|
||||
["catalog/Swallow.pkl"] {
|
||||
uri = "projectpackage://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
uri = "projectpackage://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -223,8 +223,8 @@ examples {
|
||||
}
|
||||
["glob-read absolute package uri"] {
|
||||
new {
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Ostritch.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
@@ -237,8 +237,8 @@ examples {
|
||||
"""
|
||||
base64 = "YW1lbmRzICIuLi9CaXJkLnBrbCIKCm5hbWUgPSAiT3N0cml0Y2giCgpmYXZvcml0ZUZydWl0IHsKICBuYW1lID0gIk9yYW5nZSIKfQo="
|
||||
}
|
||||
["package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
["package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"] {
|
||||
uri = "package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl"
|
||||
text = """
|
||||
amends "../Bird.pkl"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user