carlos / platform Public

copy: plain refusals and docs for release copy

Luna copy pass under Paul's delegation. #1389
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 108f5fd74b947b6beba99037be81218cbd0f315d parent bd91a38
10 files changed, +45 −34
  • .superpowers/sdd/2026-11-25-release-copy-across-consoles/luna-apply-report.md +11 −0
  • docs/parity.md +1 −1
  • docs/site/cli.md +4 −4
  • internal/console/apiship_expect.go +6 −6
  • internal/console/apiship_expect_test.go +13 −13
  • parity/parity.tsv +1 −1
  • release_copy_e2e_test.go +1 −1
  • release_pull.go +4 −4
  • release_pull_test.go +1 −1
  • ship_from_release.go +3 −3

CI cancelled — superseded by a newer push — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-CNoqva
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading github.com/benbjohnson/litestream v0.5.14
go: downloading github.com/superfly/ltx v0.5.1
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/sys v0.49.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading golang.org/x/mod v0.41.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading github.com/lmittmann/tint v1.1.3
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/prometheus/common v0.45.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading golang.org/x/text v0.43.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/mathutil v1.7.1

amadan: job cancelled — a newer push superseded it

Intent

Human

<task-notification> <task-id>ac2cc0d9be424abf6</task-id> <tool-use-id>toolu_01TuvdwBhcUCVfxXejnEdkfx</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a88005ac-72e4-481c-884f-581940b8c2c5/tasks/ac2cc0d9be424abf6.output</output-file> <status>completed</status> <summary>Agent "Implement Task 5: docs" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Status: DONE Commit: 76ed7443 `docs: make the staging wait loop match exactly and time out`. The tree is clean. The `packed-refs.lock` error appeared again, but the commit landed. Tests: `go test ./internal/docsite -count=1` printed `ok github.com/carlosframework/platform/internal/docsite 0.013s`. That output is pasted in the report. Fix in `docs/site/cli.md`: - **Exact match:** each try is now `curl -sI --max-time 10 https://shop.staging.example.com/ | tr -d '\r' | grep -qix 'x-carlos-version: v12'`. It matches the whole line, so `v120` and `v12-old` no longer match. - **Honest bound:** I kept the 30 tries and the failing exit with a message. The comment now says "about 10 minutes", the worst case of 30 tries at 10 seconds of timeout plus 10 seconds of sleep. Concerns: none. Report: `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/release-copy-across-consoles/.superpowers/sdd/2026-11-25-release-copy-across-consoles/task-5-report.md`</result> <usage><subagent_tokens>55986</subagent_tokens><tool_uses>1</tool_uses><duration_ms>11383</duration_ms></usage> </task-notification>

diff --git a/.superpowers/sdd/2026-11-25-release-copy-across-consoles/luna-apply-report.md b/.superpowers/sdd/2026-11-25-release-copy-across-consoles/luna-apply-report.md
new file mode 100644
index 000000000..b24b78848
--- /dev/null
+++ b/.superpowers/sdd/2026-11-25-release-copy-across-consoles/luna-apply-report.md
@@ -0,0 +1,11 @@
+# Luna apply report
+
+Applied verbatim: rows 1-14 and 16. Skipped: 15 (stale), 17 (no-op).
+- 1,2 release_pull.go:40-41 (call site drops len(m.Artifacts); m now unused, assignment is `_`)
+- 3,4,5 ship_from_release.go:33,39,155
+- 6,7,8 internal/console/apiship_expect.go:44,48,51 (row 8 call site passes key, e.Size, rootfsSize)
+- 9,10,11 internal/console/apiship_expect.go:76,78,80 (successor lines; helpers moved code)
+- 12 parity/parity.tsv:41, make parity-doc regenerated docs/parity.md
+- 13,14,16 docs/site/cli.md:309,312,1072 (curly apostrophes in prose only)
+Tests updated: release_pull_test.go, release_copy_e2e_test.go, internal/console/apiship_expect_test.go.
+Results: go vet ok; console TestAPIShip|TestAPIRelease ok; root targeted tests ok; docsite, parity ok; code-health PASS (below-record notes only); darwin and windows builds ok.
diff --git a/docs/parity.md b/docs/parity.md
index 624562a18..a7988f9da 100644
--- a/docs/parity.md
+++ b/docs/parity.md
@@ -214,7 +214,7 @@ CLI rows are checked against the command registry (`parity/cli.tsv`).
| canary-rm | gap | `canary rm` | | [wp-instances](#wp-instances) | Deletes the canary's instance and leaves its channel. The console has no instance delete (instances-delete); its Retire is a different operation (canary-retire). |
| canary-retire | console-only | | `POST /a/{sqid}/apps/{app}/canary/retire` | | Retires the canary's channel and refuses while any host follows it. No CLI verb retires a channel: canary rm deletes the instance and leaves the channel. |
| channels | both | `channels` | `GET /a/{sqid}/apps/{app}/releases` | | |
-| releases-pull | cli-only | `releases pull` | | | Copies a shipped release out of a console and checks every file against its digests. |
+| releases-pull | cli-only | `releases pull` | | | Copies a shipped release out of a console and checks each named file against the manifest's recorded size and digest. |
| channels-resign | gap | `channels resign` | | [wp-settings](#wp-settings) | |
| pipeline | both | `pipeline show`<br>`pipeline init`<br>`pipeline set`<br>`pipeline add`<br>`pipeline remove` | `GET /a/{sqid}/apps/{app}/pipeline`<br>`POST /a/{sqid}/apps/{app}/pipeline`<br>`GET /a/{sqid}/apps/{app}/settings/{section}` | | |
| releases | both | `releases` | `GET /a/{sqid}/apps/{app}/releases`<br>`GET /a/{sqid}/apps/{app}/deployments` | | |
diff --git a/docs/site/cli.md b/docs/site/cli.md
index 974ef1b37..f0d3ad3b1 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -306,11 +306,11 @@ Servers keep a copy only when your app answers with status 200, a `Cache-Control
`--from-release <dir>` ships a release that
[carlos releases pull](/docs/cli#carlos-releases-pull) wrote into a
directory, so another console stores the exact bytes the first one tested.
-It ships under the release's own version, with its label, notes and other
+It ships under the release’s own version, with its label, notes and other
settings, so it takes only `--app`, `--account`, `--account-id`,
`--console`, `--destination`, `--message`, `--no-prompt` and
-`--program-change`, and no file arguments. Every file is checked against
-`manifest.json` first, and a file that does not match stops the ship before
+`--program-change`, and no file arguments. Every file named by the
+manifest is checked against it first, and a mismatch stops the ship before
anything is uploaded. The console then refuses any bytes that differ from
the release's digests, and ship checks the digests it answers with.
@@ -1069,7 +1069,7 @@ disappears by policy. `--off` goes back to keeping everything.
Copies a shipped release out of a console into a directory: its
`manifest.json`, exactly as the console stores it, and every file the
-manifest names. Each file is checked against the manifest's size and sha256
+manifest names. Each file is checked against the manifest’s size and sha256
as it arrives, and a file that does not match is removed and the pull fails.
The manifest is written last, so a directory that holds one holds the whole
release. In CI the directory can be a build artifact handed to a later job.
diff --git a/internal/console/apiship_expect.go b/internal/console/apiship_expect.go
index bbfd8b385..9b4d2a409 100644
--- a/internal/console/apiship_expect.go
+++ b/internal/console/apiship_expect.go
@@ -41,14 +41,14 @@ func checkShipExpectShape(kind string, expect map[string]shipExpect, rootfsSize
}
for i, key := range sortedExpectKeys(expect) {
if !valid(key) || i >= maxKeys {
- return fmt.Errorf("expect_artifacts names %s, which a %s release cannot carry", key, kind)
+ return fmt.Errorf("the copied release names an invalid artifact %s for a %s release", key, kind)
}
e := expect[key]
if !shipExpectSHA256.MatchString(e.SHA256) || e.Size <= 0 {
- return fmt.Errorf("expect_artifacts for %s needs a sha256 of 64 hex characters and a size above zero", key)
+ return fmt.Errorf("the copied release's %s artifact needs a 64-character SHA-256 value and a size above zero", key)
}
if kind == release.KindRootfs && e.Size != rootfsSize {
- return fmt.Errorf("expect_artifacts says %d bytes for %s but rootfs_size says %d", e.Size, key, rootfsSize)
+ return fmt.Errorf("the copied release's %s artifact is %d bytes, but its rootfs is %d bytes", key, e.Size, rootfsSize)
}
}
return nil
@@ -73,11 +73,11 @@ func checkShipExpected(expect map[string]shipExpect, got map[string]release.Arti
a, sent := got[k]
switch {
case !sent:
- return fmt.Errorf("%s was expected but not sent, so nothing was stored", k)
+ return fmt.Errorf("the copied release's %s artifact was not sent, so nothing was stored", k)
case !expected:
- return fmt.Errorf("%s was sent but not expected, so nothing was stored", k)
+ return fmt.Errorf("the upload included unexpected artifact %s, so nothing was stored", k)
case a.SHA256 != e.SHA256 || a.Size != e.Size:
- return fmt.Errorf("%s does not match the release it was copied from, so nothing was stored", k)
+ return fmt.Errorf("artifact %s does not match the source release, so nothing was stored", k)
}
}
return nil
diff --git a/internal/console/apiship_expect_test.go b/internal/console/apiship_expect_test.go
index e03be77d2..52a7e0c8b 100644
--- a/internal/console/apiship_expect_test.go
+++ b/internal/console/apiship_expect_test.go
@@ -81,7 +81,7 @@ func TestAPIShipExpectRefusesForgedDigest(t *testing.T) {
{name: "linux-arm64", body: bin},
})
wantErrorContains(t, "forged digest", status, out, http.StatusBadRequest,
- "linux-arm64 does not match the release it was copied from, so nothing was stored")
+ "artifact linux-arm64 does not match the source release, so nothing was stored")
assertNotStored(t, fx, "0.1.0-1")
}
@@ -95,7 +95,7 @@ func TestAPIShipExpectRefusesMissingAndExtraParts(t *testing.T) {
{name: "linux-arm64", body: arm},
})
wantErrorContains(t, "missing part", status, out, http.StatusBadRequest,
- "linux-amd64 was expected but not sent, so nothing was stored")
+ "the copied release's linux-amd64 artifact was not sent, so nothing was stored")
assertNotStored(t, fx, "0.1.0-1")
status, out = postShip(t, fx.url("shop"), fx.token, []shipPart{
@@ -104,7 +104,7 @@ func TestAPIShipExpectRefusesMissingAndExtraParts(t *testing.T) {
{name: "linux-amd64", body: amd},
})
wantErrorContains(t, "extra part", status, out, http.StatusBadRequest,
- "linux-amd64 was sent but not expected, so nothing was stored")
+ "the upload included unexpected artifact linux-amd64, so nothing was stored")
assertNotStored(t, fx, "0.1.0-2")
}
@@ -125,7 +125,7 @@ func TestAPIShipExpectRefusesForgedOnExistingVersion(t *testing.T) {
{name: "linux-arm64", body: bin},
})
wantErrorContains(t, "forged re-ship", status, out, http.StatusBadRequest,
- "does not match the release it was copied from")
+ "does not match the source release")
_, after, err := release.GetManifestRaw(context.Background(), fx.fx.rel, "bab", "shop", "0.1.0-1")
if err != nil {
t.Fatal(err)
@@ -150,7 +150,7 @@ func TestAPIShipExpectStatic(t *testing.T) {
meta("0.1.0-2", map[string]any{"site.tar.gz": expectOf(randomBytes(t, 2<<10))}), {name: "site.tar.gz", body: site},
})
wantErrorContains(t, "forged static", status, out, http.StatusBadRequest,
- "site.tar.gz does not match the release it was copied from, so nothing was stored")
+ "artifact site.tar.gz does not match the source release, so nothing was stored")
if _, err := release.GetManifest(context.Background(), fx.fx.rel, "bab", "shop", "0.1.0-2"); !errors.Is(err, os.ErrNotExist) {
t.Fatalf("forged static manifest: err = %v, want not exist", err)
}
@@ -180,14 +180,14 @@ func TestAPIShipExpectRootfs(t *testing.T) {
withExpect("0.1.0-1", len(img), forged), {name: "rootfs-linux-arm64", body: img},
})
wantErrorContains(t, "forged rootfs", status, out, http.StatusBadRequest,
- "rootfs-linux-arm64 does not match the release it was copied from, so nothing was stored")
+ "artifact rootfs-linux-arm64 does not match the source release, so nothing was stored")
fx.assertNothingWritten(t, "blog")
fx.assertScratchEmpty(t)
wantRefusedUnread(t, fx, "size disagrees", "blog",
withExpect("0.1.0-2", 8<<20, map[string]any{"sha256": strings.Repeat("a", 64), "size": 7 << 20}),
"rootfs-linux-arm64", http.StatusBadRequest,
- "expect_artifacts says 7340032 bytes for rootfs-linux-arm64 but rootfs_size says 8388608")
+ "the copied release's rootfs-linux-arm64 artifact is 7340032 bytes, but its rootfs is 8388608 bytes")
fx.assertNothingWritten(t, "blog")
fx.assertScratchEmpty(t)
}
@@ -201,15 +201,15 @@ func TestAPIShipExpectMalformed(t *testing.T) {
want string
}{
{"bad hex", map[string]any{"linux-arm64": map[string]any{"sha256": strings.Repeat("A", 64), "size": 10}},
- "expect_artifacts for linux-arm64 needs a sha256 of 64 hex characters and a size above zero"},
+ "the copied release's linux-arm64 artifact needs a 64-character SHA-256 value and a size above zero"},
{"short hex", map[string]any{"linux-arm64": map[string]any{"sha256": "abc", "size": 10}},
- "expect_artifacts for linux-arm64 needs a sha256 of 64 hex characters and a size above zero"},
+ "the copied release's linux-arm64 artifact needs a 64-character SHA-256 value and a size above zero"},
{"size zero", map[string]any{"linux-arm64": map[string]any{"sha256": good, "size": 0}},
- "expect_artifacts for linux-arm64 needs a sha256 of 64 hex characters and a size above zero"},
+ "the copied release's linux-arm64 artifact needs a 64-character SHA-256 value and a size above zero"},
{"rootfs key on a binary", map[string]any{"rootfs-linux-arm64": map[string]any{"sha256": good, "size": 10}},
- "expect_artifacts names rootfs-linux-arm64, which a binary release cannot carry"},
+ "the copied release names an invalid artifact rootfs-linux-arm64 for a binary release"},
{"path key", map[string]any{"../x": map[string]any{"sha256": good, "size": 10}},
- "expect_artifacts names ../x, which a binary release cannot carry"},
+ "the copied release names an invalid artifact ../x for a binary release"},
}
for i, c := range cases {
ver := "0.1.0-" + string(rune('1'+i))
@@ -223,6 +223,6 @@ func TestAPIShipExpectMalformed(t *testing.T) {
many[k] = map[string]any{"sha256": good, "size": 10}
}
wantRefusedUnread(t, fx, "too many keys", "shop", binaryExpectMeta(t, "0.1.0-9", many), "linux-arm64",
- http.StatusBadRequest, "expect_artifacts names a-9, which a binary release cannot carry")
+ http.StatusBadRequest, "the copied release names an invalid artifact a-9 for a binary release")
fx.assertNothingWritten(t, "shop")
}
diff --git a/parity/parity.tsv b/parity/parity.tsv
index 9ebadbdbd..b8e681e65 100644
--- a/parity/parity.tsv
+++ b/parity/parity.tsv
@@ -38,7 +38,7 @@ canary-list releases both canary ls GET /a/{sqid}/apps/{app}/releases
canary-rm releases gap canary rm wp-instances Deletes the canary's instance and leaves its channel. The console has no instance delete (instances-delete); its Retire is a different operation (canary-retire).
canary-retire releases console-only POST /a/{sqid}/apps/{app}/canary/retire Retires the canary's channel and refuses while any host follows it. No CLI verb retires a channel: canary rm deletes the instance and leaves the channel.
channels releases both channels GET /a/{sqid}/apps/{app}/releases
-releases-pull releases cli-only releases pull Copies a shipped release out of a console and checks every file against its digests.
+releases-pull releases cli-only releases pull Copies a shipped release out of a console and checks each named file against the manifest's recorded size and digest.
channels-resign releases gap channels resign wp-settings
pipeline releases both pipeline show ; pipeline init ; pipeline set ; pipeline add ; pipeline remove GET /a/{sqid}/apps/{app}/pipeline ; POST /a/{sqid}/apps/{app}/pipeline ; GET /a/{sqid}/apps/{app}/settings/{section}
releases releases both releases GET /a/{sqid}/apps/{app}/releases ; GET /a/{sqid}/apps/{app}/deployments
diff --git a/release_copy_e2e_test.go b/release_copy_e2e_test.go
index 5cd5bc289..8e9f83a23 100644
--- a/release_copy_e2e_test.go
+++ b/release_copy_e2e_test.go
@@ -189,7 +189,7 @@ func TestE2EReleaseCopyAcrossConsoles(t *testing.T) {
useConsole(t, b, b.token(t, "storefront", svcrole.Deploy))
buf := captureStdout(t)
runShip([]string{"--from-release", dir, "--app", "storefront"})
- if !strings.Contains(buf.String(), "every digest matches the source") {
+ if !strings.Contains(buf.String(), "every digest matches the source release") {
t.Fatalf("ship stdout = %q, want every digest to match", buf.String())
}
src, got := manifestOf(t, a, "shop", "v12"), manifestOf(t, b, "storefront", "v12")
diff --git a/release_pull.go b/release_pull.go
index 86d83269c..dbde66ac7 100644
--- a/release_pull.go
+++ b/release_pull.go
@@ -37,8 +37,8 @@ const (
releaseManifestTimeout = 2 * time.Minute
releasesPullUsage = "usage: carlos releases pull <version> --app <a> --out <dir> [--account <sqid-or-name>] [--account-id <sqid>] [--console <origin>]"
- releasesPullNeedsConsole = "carlos releases pull reads from a console. set CARLOS_CONSOLE or run carlos login"
- releasesPullDone = "pulled %s %s into %s: %d files, every digest matches"
+ releasesPullNeedsConsole = "carlos releases pull needs a console. unset CARLOS_DEPLOYMENT_BUCKET and CARLOS_DEPLOYMENT_DIR, then set CARLOS_CONSOLE or run carlos login"
+ releasesPullDone = "pulled %s %s into %s. every file matches its digest"
)
// runReleasesPull is `carlos releases pull <version> --app <a> --out <dir>`.
@@ -80,11 +80,11 @@ func runReleasesPull(args []string) error {
return errors.New(releasesPullUsage)
}
}
- m, err := pullRelease(ctx, sess, acct, name, version, *out)
+ _, err = pullRelease(ctx, sess, acct, name, version, *out)
if err != nil {
return err
}
- fmt.Fprintf(stdout, releasesPullDone+"\n", name, version, *out, len(m.Artifacts))
+ fmt.Fprintf(stdout, releasesPullDone+"\n", name, version, *out)
return nil
}
diff --git a/release_pull_test.go b/release_pull_test.go
index d5cf78f39..3cb35d4f1 100644
--- a/release_pull_test.go
+++ b/release_pull_test.go
@@ -65,7 +65,7 @@ func TestReleasesPullWritesManifestAndArtifacts(t *testing.T) {
if err := pullV12(t, a, dir); err != nil {
t.Fatalf("pull: %v", err)
}
- if want := "pulled shop v12 into " + dir + ": 1 files, every digest matches"; !strings.Contains(buf.String(), want) {
+ if want := "pulled shop v12 into " + dir + ". every file matches its digest"; !strings.Contains(buf.String(), want) {
t.Fatalf("pull stdout = %q, want %q", buf.String(), want)
}
_, raw, err := release.GetManifestRaw(context.Background(), a.rel, release.OpsAccount, "shop", "v12")
diff --git a/ship_from_release.go b/ship_from_release.go
index 6b057ae31..9d6122ea0 100644
--- a/ship_from_release.go
+++ b/ship_from_release.go
@@ -30,13 +30,13 @@ import (
const (
shipFromReleaseUsage = "usage: carlos ship --from-release <dir> [--app <a>] [--account <sqid-or-name>] [--account-id <sqid>] [--console <origin>] [--program-change] [--message <text>]"
- shipFromReleaseNeedsConsole = "carlos ship --from-release ships through a console. set CARLOS_CONSOLE or run carlos login"
+ shipFromReleaseNeedsConsole = "carlos ship --from-release needs a console. unset CARLOS_DEPLOYMENT_BUCKET and CARLOS_DEPLOYMENT_DIR, then set CARLOS_CONSOLE or run carlos login"
shipFromReleaseFlagConflict = "--from-release ships the release's own settings, so it cannot be combined with --%s"
shipFromReleaseNoFileArgs = "--from-release ships the files in its directory, so it takes no file arguments"
shipFromReleaseNoManifest = "%s has no manifest.json. run carlos releases pull first"
shipFromReleaseFileDiffers = "%s does not match manifest.json, so nothing was shipped"
shipFromReleaseDigestDiffer = "the console stored %s with a different digest than the source release. do not promote this version"
- shipFromReleaseDone = "shipped %s %s from %s, every digest matches the source"
+ shipFromReleaseDone = "shipped %s %s from %s. every digest matches the source release"
shipFromReleaseNoOp = "already shipped %s %s with identical content, nothing to do"
)
@@ -152,7 +152,7 @@ func loadReleaseDir(dir string) (*release.Manifest, map[string]string, error) {
// An empty version would have the console mint one: the copy would land
// under a name the source never shipped.
if m.Version == "" || len(m.Artifacts) == 0 {
- return nil, nil, fmt.Errorf("%s: manifest.json names no version or no files", dir)
+ return nil, nil, fmt.Errorf("%s: manifest.json must name a version and at least one file", dir)
}
for _, art := range m.Artifacts {
if !validPulledFile(art.File) {