From 4da26681b58fb3afa9c2a297f159e6b325910e2d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 5 Jan 2026 00:43:21 +0900 Subject: internal/pkg: compute http identifier from url The previous implementation exposes arbitrary user input to the cache as an identifier, which is highly error-prone and can cause the cache to enter an inconsistent state if the user is not careful. This change replaces the implementation to compute identifier late, using url string as params. Signed-off-by: Ophestra --- internal/pkg/pkg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/pkg/pkg.go') diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go index 4ab3125a..b50dc48e 100644 --- a/internal/pkg/pkg.go +++ b/internal/pkg/pkg.go @@ -141,8 +141,8 @@ func Ident(a Artifact) ID { type Kind uint64 const ( - // KindHTTP is the kind of [Artifact] returned by [NewHTTP]. - KindHTTP Kind = iota + // KindHTTPGet is the kind of [Artifact] returned by [NewHTTPGet]. + KindHTTPGet Kind = iota // KindTar is the kind of artifact returned by [NewTar]. KindTar ) -- cgit v1.3.1