mirror of
https://github.com/docker/cli.git
synced 2026-09-24 07:25:07 -05:00
Change BuildFile in order to use TarSum instead of custom checksum
Upstream-commit: 894d4a23fba1a67087ae5bbe9c50c56e6dc09289 Component: engine
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"io"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type TarSum struct {
|
||||
@@ -92,6 +93,7 @@ func (ts *TarSum) Read(buf []byte) (int, error) {
|
||||
}
|
||||
return n, err
|
||||
}
|
||||
ts.currentFile = strings.TrimSuffix(strings.TrimPrefix(currentHeader.Name, "./"), "/")
|
||||
if err := ts.encodeHeader(currentHeader); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user