diff --git a/pkg/action/pull.go b/pkg/action/pull.go index 01855bc59..75f30eeda 100644 --- a/pkg/action/pull.go +++ b/pkg/action/pull.go @@ -146,7 +146,7 @@ func (p *Pull) Run(chartRef string) (string, error) { // a consistent summary here. We mirror the OCI output format: // // Pulled: : - // Digest: sha256: + // Checksum: sha256: // // For HTTP/repo pulls, the digest is the SHA-256 of the downloaded .tgz archive. // For direct OCI pulls, the registry client already prints "Pulled:" and @@ -164,9 +164,9 @@ func (p *Pull) Run(chartRef string) (string, error) { fmt.Fprintf(&out, "Pulled: %s\n", tag) if sum, err := sha256File(saved); err == nil { - fmt.Fprintf(&out, "Digest: sha256:%x\n", sum) + fmt.Fprintf(&out, "Checksum: sha256:%x\n", sum) } else { - fmt.Fprintf(&out, "Digest failed: %v\n", err) + fmt.Fprintf(&out, "Checksum failed: %v\n", err) } } diff --git a/pkg/action/pull_test.go b/pkg/action/pull_test.go index 5c6f488e9..49068466c 100644 --- a/pkg/action/pull_test.go +++ b/pkg/action/pull_test.go @@ -79,7 +79,7 @@ entries: expectedURL := srv.URL + "/testchart:1.2.3" assert.Contains(t, out, "Pulled: "+expectedURL, "expected Pulled summary in output") - assert.Contains(t, out, "Digest: "+wantDigest, "expected archive digest in output") + assert.Contains(t, out, "Checksum: "+wantDigest, "expected archive checksum in output") // Ensure the chart file was saved. _, statErr := os.Stat(filepath.Join(p.DestDir, "testchart-1.2.3.tgz")) @@ -122,7 +122,7 @@ func TestPull_PrintsSummary_ForDirectHTTPURL(t *testing.T) { // Output should reflect name-version.tgz from the URL. expectedURL := srv.URL + "/directchart:9.9.9" assert.Contains(t, out, "Pulled: "+expectedURL, "expected Pulled summary in output") - assert.Contains(t, out, "Digest: "+wantDigest, "expected archive digest in output") + assert.Contains(t, out, "Checksum: "+wantDigest, "expected archive checksum in output") // Ensure the chart file was saved. _, statErr := os.Stat(filepath.Join(p.DestDir, "directchart-9.9.9.tar.gz")) diff --git a/pkg/cmd/pull_test.go b/pkg/cmd/pull_test.go index 34bf2860b..0629f2127 100644 --- a/pkg/cmd/pull_test.go +++ b/pkg/cmd/pull_test.go @@ -45,7 +45,7 @@ func TestPullCmd(t *testing.T) { } helmTestKeyOut := "Pulled: test/signtest\n" + - "Digest: sha256:e5ef611620fb97704d8751c16bab17fedb68883bfb0edc76f78a70e9173f9b55\n" + + "Checksum: sha256:e5ef611620fb97704d8751c16bab17fedb68883bfb0edc76f78a70e9173f9b55\n" + "Signed by: Helm Testing (This key should only be used for testing. DO NOT TRUST.) \n" + "Using Key With Fingerprint: 5E615389B53CA37F0EE60BD3843BBF981FC18762\n" + "Chart Hash Verified: "