mirror of
https://github.com/distribution/distribution.git
synced 2025-08-21 16:24:00 +00:00
When building for 386, we got the following build error: registry/storage/driver/s3-aws/s3.go:312:99: cannot use maxChunkSize (untyped int constant 5368709120) as int value in argument to getParameterAsInteger (overflows) This is because the s3_64bit.go is used. Adjust the build tag matching in s3_32bit.go and s3_64bit.go to fix this issue. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
8 lines
207 B
Go
8 lines
207 B
Go
//go:build !arm && !386
|
|
|
|
package s3
|
|
|
|
// maxChunkSize defines the maximum multipart upload chunk size allowed by S3.
|
|
// S3 API requires max upload chunk to be 5GB.
|
|
const maxChunkSize = 5 * 1024 * 1024 * 1024
|