mirror of
https://github.com/apple/pkl.git
synced 2026-04-27 10:47:12 +02:00
Initial commit
This commit is contained in:
11
pkl-commons-test/src/main/files/packages/badChecksum@1.0.0/badChecksum@1.0.0.json
vendored
Normal file
11
pkl-commons-test/src/main/files/packages/badChecksum@1.0.0/badChecksum@1.0.0.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"packageUri": "package://localhost:12110/badChecksum@1.0.0",
|
||||
"name": "bugs",
|
||||
"packageZipUrl": "https://localhost:12110/badChecksum@1.0.0/badChecksum@1.0.0.zip",
|
||||
"dependencies": {},
|
||||
"version": "1.0.0",
|
||||
"packageZipChecksums": {
|
||||
"sha256": "intentionally bogus checksum"
|
||||
}
|
||||
}
|
||||
1
pkl-commons-test/src/main/files/packages/badChecksum@1.0.0/package/Bug.pkl
vendored
Normal file
1
pkl-commons-test/src/main/files/packages/badChecksum@1.0.0/package/Bug.pkl
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module bugs.Bug
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"packageUri": "package://localhost:12110/badImportsWithinPackage@1.1.0",
|
||||
"name": "badImportsWithinPackage",
|
||||
"packageZipUrl": "https://localhost:12110/badImportsWithinPackage@1.0.0/badImportsWithinPackage@1.0.0.zip",
|
||||
"dependencies": {},
|
||||
"version": "1.0.0",
|
||||
"packageZipChecksums": {
|
||||
"sha256": "$computedChecksum"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
res = import("not/a/valid/path.pkl")
|
||||
@@ -0,0 +1 @@
|
||||
res = read("not/a/valid/path.txt")
|
||||
@@ -0,0 +1 @@
|
||||
res = import("@fruits/Foo.pkl")
|
||||
@@ -0,0 +1 @@
|
||||
res = read("@notapackage/Foo.txt")
|
||||
1
pkl-commons-test/src/main/files/packages/badMetadataJson@1.0.0/badMetadataJson@1.0.0.json
vendored
Normal file
1
pkl-commons-test/src/main/files/packages/badMetadataJson@1.0.0/badMetadataJson@1.0.0.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
this is not json
|
||||
1
pkl-commons-test/src/main/files/packages/badMetadataJson@1.0.0/package/Bug.pkl
vendored
Normal file
1
pkl-commons-test/src/main/files/packages/badMetadataJson@1.0.0/package/Bug.pkl
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module bugs.Bug
|
||||
11
pkl-commons-test/src/main/files/packages/badPackageZipUrl@1.0.0/badPackageZipUrl@1.0.0.json
vendored
Normal file
11
pkl-commons-test/src/main/files/packages/badPackageZipUrl@1.0.0/badPackageZipUrl@1.0.0.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"packageUri": "package://localhost:12110/badPackagezipUrl@1.1.0",
|
||||
"name": "bugs",
|
||||
"packageZipUrl": "ftp://wait/a/minute",
|
||||
"dependencies": {},
|
||||
"version": "1.0.0",
|
||||
"packageZipChecksums": {
|
||||
"sha256": "$computedChecksum"
|
||||
}
|
||||
}
|
||||
1
pkl-commons-test/src/main/files/packages/badPackageZipUrl@1.0.0/package/Bug.pkl
vendored
Normal file
1
pkl-commons-test/src/main/files/packages/badPackageZipUrl@1.0.0/package/Bug.pkl
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module bugs.Bug
|
||||
27
pkl-commons-test/src/main/files/packages/birds@0.5.0/birds@0.5.0.json
vendored
Normal file
27
pkl-commons-test/src/main/files/packages/birds@0.5.0/birds@0.5.0.json
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"name": "birds",
|
||||
"packageUri": "package://localhost:12110/birds@0.5.0",
|
||||
"packageZipUrl": "https://localhost:12110/birds@0.5.0/birds@0.5.0.zip",
|
||||
"dependencies": {
|
||||
"fruities": {
|
||||
"uri": "package://localhost:12110/fruit@1.0.5",
|
||||
"checksums": {
|
||||
"sha256": "b4ea243de781feeab7921227591e6584db5d0673340f30fab2ffe8ad5c9f75f5"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": "0.5.0",
|
||||
"packageZipChecksums": {
|
||||
"sha256": "$computedChecksum"
|
||||
},
|
||||
"sourceCodeUrlScheme": "https://example.com/birds/v0.5.0/blob%{path}#L%{line}-L%{endLine}",
|
||||
"sourceCode": "https://example.com/birds",
|
||||
"documentation": "https://example.com/bird-docs",
|
||||
"license": "UNLICENSED",
|
||||
"authors": [
|
||||
"petey-bird@example.com",
|
||||
"polly-bird@example.com"
|
||||
],
|
||||
"issueTracker": "https://example.com/birds/issues"
|
||||
}
|
||||
7
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/Bird.pkl
vendored
Normal file
7
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/Bird.pkl
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
open module birds.Bird
|
||||
|
||||
import "@fruities/Fruit.pkl"
|
||||
|
||||
name: String
|
||||
|
||||
favoriteFruit: Fruit
|
||||
4
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/allFruit.pkl
vendored
Normal file
4
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/allFruit.pkl
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
module birds.allFruit
|
||||
|
||||
fruit = import*("@fruities/catalog/*.pkl")
|
||||
fruitFiles = read*("@fruities/catalog/*.pkl")
|
||||
4
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/catalog.pkl
vendored
Normal file
4
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/catalog.pkl
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
module birds.catalog
|
||||
|
||||
catalog = import*("catalog/*.pkl")
|
||||
catalogFiles = read*("catalog/*.pkl")
|
||||
7
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/catalog/Ostritch.pkl
vendored
Normal file
7
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/catalog/Ostritch.pkl
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
amends "../Bird.pkl"
|
||||
|
||||
name = "Ostritch"
|
||||
|
||||
favoriteFruit {
|
||||
name = "Orange"
|
||||
}
|
||||
7
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/catalog/Swallow.pkl
vendored
Normal file
7
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/catalog/Swallow.pkl
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
amends "../Bird.pkl"
|
||||
|
||||
import "@fruities/catalog/apple.pkl"
|
||||
|
||||
name = "Swallow"
|
||||
|
||||
favoriteFruit = apple
|
||||
7
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/some/dir/Bird.pkl
vendored
Normal file
7
pkl-commons-test/src/main/files/packages/birds@0.5.0/package/some/dir/Bird.pkl
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
amends "..."
|
||||
|
||||
name = "Bird"
|
||||
|
||||
favoriteFruit {
|
||||
name = "Fruit"
|
||||
}
|
||||
19
pkl-commons-test/src/main/files/packages/fruit@1.0.5/fruit@1.0.5.json
vendored
Normal file
19
pkl-commons-test/src/main/files/packages/fruit@1.0.5/fruit@1.0.5.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"packageUri": "package://localhost:12110/fruit@1.0.5",
|
||||
"name": "fruit",
|
||||
"version": "1.0.5",
|
||||
"packageZipUrl": "https://localhost:12110/fruit@1.0.5/fruit@1.0.5.zip",
|
||||
"dependencies": {},
|
||||
"packageZipChecksums": {
|
||||
"sha256": "$computedChecksum"
|
||||
},
|
||||
"sourceCode": "https://example.com/fruit",
|
||||
"documentation": "https://example.com/fruit-docs",
|
||||
"license": "UNLICENSED",
|
||||
"authors": [
|
||||
"apple-1@example.com",
|
||||
"banana-2@example.com"
|
||||
],
|
||||
"issueTracker": "https://example.com/fruit/issues"
|
||||
}
|
||||
3
pkl-commons-test/src/main/files/packages/fruit@1.0.5/package/Fruit.pkl
vendored
Normal file
3
pkl-commons-test/src/main/files/packages/fruit@1.0.5/package/Fruit.pkl
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module fruit.Fruit
|
||||
|
||||
name: String
|
||||
3
pkl-commons-test/src/main/files/packages/fruit@1.0.5/package/catalog/apple.pkl
vendored
Normal file
3
pkl-commons-test/src/main/files/packages/fruit@1.0.5/package/catalog/apple.pkl
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
amends "../Fruit.pkl"
|
||||
|
||||
name = "Apple"
|
||||
19
pkl-commons-test/src/main/files/packages/fruit@1.1.0/fruit@1.1.0.json
vendored
Normal file
19
pkl-commons-test/src/main/files/packages/fruit@1.1.0/fruit@1.1.0.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"packageUri": "package://localhost:12110/fruit@1.1.0",
|
||||
"name": "fruit",
|
||||
"version": "1.1.0",
|
||||
"packageZipUrl": "https://localhost:12110/fruit@1.1.0/fruit@1.1.0.zip",
|
||||
"dependencies": {},
|
||||
"packageZipChecksums": {
|
||||
"sha256": "$computedChecksum"
|
||||
},
|
||||
"sourceCode": "https://example.com/fruit",
|
||||
"documentation": "https://example.com/fruit-docs",
|
||||
"license": "UNLICENSED",
|
||||
"authors": [
|
||||
"apple-1@example.com",
|
||||
"banana-2@example.com"
|
||||
],
|
||||
"issueTracker": "https://example.com/fruit/issues"
|
||||
}
|
||||
3
pkl-commons-test/src/main/files/packages/fruit@1.1.0/package/Fruit.pkl
vendored
Normal file
3
pkl-commons-test/src/main/files/packages/fruit@1.1.0/package/Fruit.pkl
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module fruit.Fruit
|
||||
|
||||
name: String
|
||||
3
pkl-commons-test/src/main/files/packages/fruit@1.1.0/package/catalog/apple.pkl
vendored
Normal file
3
pkl-commons-test/src/main/files/packages/fruit@1.1.0/package/catalog/apple.pkl
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
amends "../Fruit.pkl"
|
||||
|
||||
name = "Apple 🍎"
|
||||
3
pkl-commons-test/src/main/files/packages/fruit@1.1.0/package/catalog/pineapple.pkl
vendored
Normal file
3
pkl-commons-test/src/main/files/packages/fruit@1.1.0/package/catalog/pineapple.pkl
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
amends "../Fruit.pkl"
|
||||
|
||||
name = "Pineapple 🍍"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"packageUri": "package://localhost:12110/packageContainingWildcardCharacters@1.0.0",
|
||||
"name": "packageContainingWildcardCharacters",
|
||||
"version": "1.0.0",
|
||||
"packageZipUrl": "https://localhost:12110/packageContainingWildcardCharacters@1.0.0/packageContainingWildcardCharacters@1.0.0.zip",
|
||||
"dependencies": {},
|
||||
"packageZipChecksums": {
|
||||
"sha256": "$computedChecksum"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user