mirror of
https://github.com/restic/restic.git
synced 2025-12-12 05:11:46 +00:00
backend/gs: disable GRPC API to reduce binary size bloat
Since cloud.google.com/go/storage v1.44.0 the GRPC API is enabled by default. However, this causes the restic binary size to explode by 20MB. So just disable it again.
This commit is contained in:
@@ -106,7 +106,9 @@ func build(sourceDir, outputDir, goos, goarch string) (filename string) {
|
||||
}
|
||||
outputFile := filepath.Join(outputDir, filename)
|
||||
|
||||
tags := "selfupdate"
|
||||
// disable_grpc_modules is necessary to reduce the binary size since cloud.google.com/go/storage v1.44.0
|
||||
// see https://github.com/googleapis/google-cloud-go/issues/11448
|
||||
tags := "selfupdate,disable_grpc_modules"
|
||||
if opts.Tags != "" {
|
||||
tags += "," + opts.Tags
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user