mirror of
https://github.com/mudler/luet.git
synced 2025-09-26 23:23:40 +00:00
bump github.com/moby/buildkit to v0.13.0 (#351)
* bump github.com/moby/buildkit to v0.13.0 Signed-off-by: Nianyu Shen <nianyu@spectrocloud.com> * fix: update dep usage based on newer version Signed-off-by: Nianyu Shen <nianyu@spectrocloud.com> * remove empty line Signed-off-by: Nianyu Shen <nianyu@spectrocloud.com> * ci: bump golang to 1.21.x * Bump moby * debug --------- Signed-off-by: Nianyu Shen <nianyu@spectrocloud.com> Co-authored-by: Nianyu Shen <nianyu@spectrocloud.com>
This commit is contained in:
committed by
GitHub
parent
c47bf4833a
commit
4c788ccbd1
15
vendor/github.com/google/go-containerregistry/pkg/legacy/tarball/write.go
generated
vendored
15
vendor/github.com/google/go-containerregistry/pkg/legacy/tarball/write.go
generated
vendored
@@ -17,8 +17,6 @@ package tarball
|
||||
import (
|
||||
"archive/tar"
|
||||
"bytes"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
@@ -63,8 +61,9 @@ func v1LayerID(layer v1.Layer, parentID string, rawConfig []byte) (string, error
|
||||
if len(rawConfig) != 0 {
|
||||
s = fmt.Sprintf("%s %s", s, string(rawConfig))
|
||||
}
|
||||
rawDigest := sha256.Sum256([]byte(s))
|
||||
return hex.EncodeToString(rawDigest[:]), nil
|
||||
|
||||
h, _, _ := v1.SHA256(strings.NewReader(s))
|
||||
return h.Hex, nil
|
||||
}
|
||||
|
||||
// newTopV1Layer creates a new v1Layer for a layer other than the top layer in a v1 image tarball.
|
||||
@@ -187,9 +186,11 @@ func filterEmpty(h []v1.History) []v1.History {
|
||||
// One manifest.json file at the top level containing information about several images.
|
||||
// One repositories file mapping from the image <registry>/<repo name> to <tag> to the id of the top most layer.
|
||||
// For every layer, a directory named with the layer ID is created with the following contents:
|
||||
// layer.tar - The uncompressed layer tarball.
|
||||
// <layer id>.json- Layer metadata json.
|
||||
// VERSION- Schema version string. Always set to "1.0".
|
||||
//
|
||||
// layer.tar - The uncompressed layer tarball.
|
||||
// <layer id>.json- Layer metadata json.
|
||||
// VERSION- Schema version string. Always set to "1.0".
|
||||
//
|
||||
// One file for the config blob, named after its SHA.
|
||||
func MultiWrite(refToImage map[name.Reference]v1.Image, w io.Writer) error {
|
||||
tf := tar.NewWriter(w)
|
||||
|
Reference in New Issue
Block a user