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:
translatenix
2024-03-20 10:47:28 -07:00
committed by GitHub
parent 2aa60eaf1f
commit dfe85b786e
123 changed files with 469 additions and 469 deletions

View File

@@ -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"
}

View File

@@ -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"
}
}

View File

@@ -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"
}

View File

@@ -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")
}

View File

@@ -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"
}
}

View File

@@ -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"
}