mirror of
https://github.com/apple/pkl.git
synced 2026-05-03 05:34:26 +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:
@@ -2,7 +2,7 @@ amends "pkl:Project"
|
||||
|
||||
dependencies {
|
||||
["birds"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
checksums {
|
||||
sha256 = "intentionally bogus value"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@ amends "pkl:Project"
|
||||
dependencies {
|
||||
["fruit"] {
|
||||
// should fail because the checksum is invalid
|
||||
uri = "package://localhost:12110/fruit@1.0.5"
|
||||
uri = "package://localhost:0/fruit@1.0.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"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": "intentionally bogus checksum"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ amends "pkl:Project"
|
||||
|
||||
dependencies {
|
||||
["birds"] {
|
||||
uri = "package://localhost:12110/birds@0.5.0"
|
||||
uri = "package://localhost:0/birds@0.5.0"
|
||||
}
|
||||
["project3"] = import("../project3/PklProject")
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ amends "pkl:Project"
|
||||
|
||||
package {
|
||||
name = "project3"
|
||||
baseUri = "package://localhost:12110/project3"
|
||||
baseUri = "package://localhost:0/project3"
|
||||
version = "1.5.0"
|
||||
// not actually used, just need to provide one so tests pass
|
||||
packageZipUrl = "https://bogus.value"
|
||||
@@ -10,6 +10,6 @@ package {
|
||||
|
||||
dependencies {
|
||||
["fruit"] {
|
||||
uri = "package://localhost:12110/fruit@1.1.0"
|
||||
uri = "package://localhost:0/fruit@1.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@ package {
|
||||
name = "project4"
|
||||
version = "1.0.0"
|
||||
packageZipUrl = "https://bogus.value"
|
||||
baseUri = "package://localhost:12110/project4"
|
||||
baseUri = "package://localhost:0/project4"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user