From ce249d23f1e3d3d90330fd8d02699b4b7c8ccb9b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 3 Jan 2026 15:26:59 +0900 Subject: internal/pkg: implement http artifact This is useful for downloading source tarballs from the internet. Signed-off-by: Ophestra --- internal/pkg/pkg_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/pkg/pkg_test.go') diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index f564572a..c5b5cdca 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -5,6 +5,7 @@ import ( "crypto/sha512" "encoding/base64" "io/fs" + "net/http" "os" "path/filepath" "reflect" @@ -281,6 +282,10 @@ func TestErrors(t *testing.T) { }, 8)), }, "got AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + " instead of deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef"}, + + {"ResponseStatusError", pkg.ResponseStatusError( + http.StatusNotAcceptable, + ), "the requested URL returned non-OK status: Not Acceptable"}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { -- cgit v1.3.1