Skip to content

Commit e834742

Browse files
Merge pull request #111 from bitrise-io/remove-0-suffix
fix: Remove /0 suffix in FindMissingBlobs call
2 parents 8453edc + b6f7b7e commit e834742

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

cmd/restoreGradleConfigurationCache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var restoreGradleConfigCacheCmd = &cobra.Command{
5555
return fmt.Errorf("restore Gradle config cache from Bitrise Build Cache: %w", err)
5656
}
5757

58-
logger.TInfof("✅ Configufation cache restored from Bitrise Build Cache ")
58+
logger.TInfof("✅ Configuration cache restored from Bitrise Build Cache ")
5959

6060
return nil
6161
},

cmd/saveGradleConfigurationCache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var saveGradleConfigCacheCmd = &cobra.Command{
5858
return fmt.Errorf("save Gradle config cache into Bitrise Build Cache: %w", err)
5959
}
6060

61-
logger.TInfof("✅ Configufation cache saved into Bitrise Build Cache ")
61+
logger.TInfof("✅ Configuration cache saved into Bitrise Build Cache ")
6262

6363
return nil
6464
},

internal/build_cache/kv/methods.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"context"
66
"fmt"
77
"io"
8-
"strings"
98
"time"
109

1110
remoteexecution "github.com/bitrise-io/bitrise-build-cache-cli/proto/build/bazel/remote/execution/v2"
@@ -207,7 +206,7 @@ func convertToBlobDigests(digests []*FileDigest) []*remoteexecution.Digest {
207206

208207
for _, d := range digests {
209208
out = append(out, &remoteexecution.Digest{
210-
Hash: d.Sha256Sum + "/0",
209+
Hash: d.Sha256Sum,
211210
SizeBytes: d.SizeInBytes,
212211
})
213212
}
@@ -220,7 +219,7 @@ func convertToFileDigests(digests []*remoteexecution.Digest) []*FileDigest {
220219

221220
for _, d := range digests {
222221
out = append(out, &FileDigest{
223-
Sha256Sum: strings.TrimSuffix(d.GetHash(), "/0"),
222+
Sha256Sum: d.GetHash(),
224223
SizeInBytes: d.GetSizeBytes(),
225224
})
226225
}

0 commit comments

Comments
 (0)