Skip to content

Commit f24d5ce

Browse files
committed
Move SHA256TREE code to a separate repo
Requested by: Malte Poll
1 parent 85aafcb commit f24d5ce

15 files changed

+9
-1238
lines changed

MODULE.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ use_repo(
4646
"com_github_aws_aws_sdk_go_v2_service_s3",
4747
"com_github_aws_aws_sdk_go_v2_service_sts",
4848
"com_github_bazelbuild_buildtools",
49+
"com_github_buildbarn_go_sha256tree",
4950
"com_github_fxtlabs_primes",
5051
"com_github_go_jose_go_jose_v3",
5152
"com_github_google_uuid",

go.mod

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ require (
1616
github.com/aws/aws-sdk-go-v2/service/sts v1.33.14
1717
github.com/bazelbuild/buildtools v0.0.0-20250204160707-ad48c76ab9b5
1818
github.com/bazelbuild/remote-apis v0.0.0-20250211041012-7f922028fcfa
19+
github.com/buildbarn/go-sha256tree v0.0.0-20250310211320-0f70f20e855b
1920
github.com/fxtlabs/primes v0.0.0-20150821004651-dad82d10a449
2021
github.com/go-jose/go-jose/v3 v3.0.3
2122
github.com/google/go-jsonnet v0.20.0
@@ -43,7 +44,7 @@ require (
4344
golang.org/x/lint v0.0.0-20241112194109-818c5a804067
4445
golang.org/x/oauth2 v0.26.0
4546
golang.org/x/sync v0.11.0
46-
golang.org/x/sys v0.30.0
47+
golang.org/x/sys v0.31.0
4748
google.golang.org/api v0.221.0
4849
google.golang.org/genproto/googleapis/bytestream v0.0.0-20250212204824-5a70512c5d8b
4950
google.golang.org/genproto/googleapis/rpc v0.0.0-20250212204824-5a70512c5d8b

go.sum

+4-2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ github.com/bazelbuild/remote-apis v0.0.0-20250211041012-7f922028fcfa/go.mod h1:/
7575
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
7676
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
7777
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
78+
github.com/buildbarn/go-sha256tree v0.0.0-20250310211320-0f70f20e855b h1:IKUxixGBm9UxobU7c248z0BF0ojG19uoSLz8MFZM/KA=
79+
github.com/buildbarn/go-sha256tree v0.0.0-20250310211320-0f70f20e855b/go.mod h1:e7g3/yWApcg+PpDqd4eQEEV8pexQmfCgK3frP+1Wuvk=
7880
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
7981
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
8082
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
@@ -323,8 +325,8 @@ golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBc
323325
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
324326
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
325327
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
326-
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
327-
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
328+
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
329+
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
328330
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
329331
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
330332
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=

pkg/digest/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ go_library(
1818
visibility = ["//visibility:public"],
1919
deps = [
2020
"//pkg/clock",
21-
"//pkg/digest/sha256tree",
2221
"//pkg/eviction",
2322
"//pkg/proto/configuration/digest",
2423
"//pkg/util",
2524
"@bazel_remote_apis//build/bazel/remote/execution/v2:remote_execution_go_proto",
25+
"@com_github_buildbarn_go_sha256tree//:go-sha256tree",
2626
"@com_github_google_uuid//:uuid",
2727
"@org_golang_google_grpc//codes",
2828
"@org_golang_google_grpc//status",

pkg/digest/bare_function.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"hash"
99

1010
remoteexecution "github.com/bazelbuild/remote-apis/build/bazel/remote/execution/v2"
11-
"github.com/buildbarn/bb-storage/pkg/digest/sha256tree"
11+
"github.com/buildbarn/go-sha256tree"
1212
)
1313

1414
// SupportedDigestFunctions is the list of digest functions supported by

pkg/digest/sha256tree/BUILD.bazel

-32
This file was deleted.

pkg/digest/sha256tree/compress_parent.go

-80
This file was deleted.

pkg/digest/sha256tree/compress_parent_arm64.go

-13
This file was deleted.

pkg/digest/sha256tree/compress_parent_arm64.s

-183
This file was deleted.

0 commit comments

Comments
 (0)