Skip to content

Commit 0241bbf

Browse files
Merge pull request #1656 from tesshuflower/restic-minio-prefetch-fix
update mover-restic/minio-go/go.mod
2 parents 926c1bb + f0171be commit 0241bbf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mover-restic/minio-go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/minio/minio-go/v7
22

3-
go 1.22
3+
go 1.22.0
44

55
require (
66
github.com/dustin/go-humanize v1.0.1

mover-restic/update-restic-to.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@ log "Updating minio-go source to tag: $MINIO_GO_TAG"
5757
update_repo_to "$MINIO_GO_REPOSITORY" "$MINIO_GO_TAG" minio-go
5858

5959

60-
6160
############################################################
6261
## Patch minio-go
6362
############################################################
6463

6564
cd minio-go
6665
# Remove sha256-simd library
6766
find . -name '*.go' -exec sed -ri 's|github.com/minio/sha256-simd|crypto/sha256|' {} \;
67+
# Downstream builder needs to pre-fetch files with cachi2 and cannot handle go 1.22 (needs go 1.22.0 for the toolchain)
68+
sed -i 's|go 1.22$|go 1.22.0|' go.mod
6869
# Clean up modules and verify
6970
go mod tidy
7071
if grep sha256-simd go.sum; then

0 commit comments

Comments
 (0)