aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/tar.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/tar.go')
-rw-r--r--internal/pkg/tar.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go
index eda41401..faad4854 100644
--- a/internal/pkg/tar.go
+++ b/internal/pkg/tar.go
@@ -70,9 +70,9 @@ func NewHTTPGetTar(
// Kind returns the hardcoded [Kind] constant.
func (a *tarArtifact) Kind() Kind { return KindTar }
-// Params returns compression encoded in little endian.
-func (a *tarArtifact) Params() []byte {
- return binary.LittleEndian.AppendUint64(nil, a.compression)
+// Params writes compression encoded in little endian.
+func (a *tarArtifact) Params(ctx *IContext) {
+ ctx.GetHash().Write(binary.LittleEndian.AppendUint64(nil, a.compression))
}
// Dependencies returns a slice containing the backing file.