From 9fd20202e16899a46ecd47b388b4aa2f7fa97e5c Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 15 Jan 2024 11:30:52 +0200 Subject: [PATCH] vendor/github.com/VictoriaMetrics/easyproto: update from v0.1.3 to v0.1.4 This fixes vet error for 32-bit architectures: https://github.com/VictoriaMetrics/VictoriaMetrics/actions/runs/7521709384/job/20472882877 --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/VictoriaMetrics/easyproto/README.md | 6 ++++++ vendor/github.com/VictoriaMetrics/easyproto/reader.go | 2 +- vendor/modules.txt | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 63b3c6633..911133e49 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go/storage v1.35.1 github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.1 github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.2.0 - github.com/VictoriaMetrics/easyproto v0.1.3 + github.com/VictoriaMetrics/easyproto v0.1.4 github.com/VictoriaMetrics/fastcache v1.12.2 // Do not use the original github.com/valyala/fasthttp because of issues diff --git a/go.sum b/go.sum index 3d74a4508..0cc9bfb78 100644 --- a/go.sum +++ b/go.sum @@ -58,8 +58,8 @@ github.com/AzureAD/microsoft-authentication-library-for-go v1.2.0/go.mod h1:wP83 github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= -github.com/VictoriaMetrics/easyproto v0.1.3 h1:8in4J7DdI+umTJK+0LA/NPC68NmmAv+Tn2WY5DSAniM= -github.com/VictoriaMetrics/easyproto v0.1.3/go.mod h1:QlGlzaJnDfFd8Lk6Ci/fuLxfTo3/GThPs2KH23mv710= +github.com/VictoriaMetrics/easyproto v0.1.4 h1:r8cNvo8o6sR4QShBXQd1bKw/VVLSQma/V2KhTBPf+Sc= +github.com/VictoriaMetrics/easyproto v0.1.4/go.mod h1:QlGlzaJnDfFd8Lk6Ci/fuLxfTo3/GThPs2KH23mv710= github.com/VictoriaMetrics/fastcache v1.12.2 h1:N0y9ASrJ0F6h0QaC3o6uJb3NIZ9VKLjCM7NQbSmF7WI= github.com/VictoriaMetrics/fastcache v1.12.2/go.mod h1:AmC+Nzz1+3G2eCPapF6UcsnkThDcMsQicp4xDukwJYI= github.com/VictoriaMetrics/fasthttp v1.2.0 h1:nd9Wng4DlNtaI27WlYh5mGXCJOmee/2c2blTJwfyU9I= diff --git a/vendor/github.com/VictoriaMetrics/easyproto/README.md b/vendor/github.com/VictoriaMetrics/easyproto/README.md index caaa40b3b..f601a0951 100644 --- a/vendor/github.com/VictoriaMetrics/easyproto/README.md +++ b/vendor/github.com/VictoriaMetrics/easyproto/README.md @@ -217,3 +217,9 @@ func GetTimeseriesName(src []byte) (name string, err error) { return "", fmt.Errorf("timeseries name isn't found in the message") } ``` + +## Users + +`easyproto` is used in the following projects: + +- [VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics) diff --git a/vendor/github.com/VictoriaMetrics/easyproto/reader.go b/vendor/github.com/VictoriaMetrics/easyproto/reader.go index 4ffa4db53..c525c1f17 100644 --- a/vendor/github.com/VictoriaMetrics/easyproto/reader.go +++ b/vendor/github.com/VictoriaMetrics/easyproto/reader.go @@ -64,7 +64,7 @@ func (fc *FieldContext) NextField(src []byte) ([]byte, error) { src = src[offset:] fieldNum = tag >> 3 if fieldNum > math.MaxUint32 { - return src, fmt.Errorf("fieldNum=%d is bigger than uint32max=%d", fieldNum, math.MaxUint32) + return src, fmt.Errorf("fieldNum=%d is bigger than uint32max=%d", fieldNum, uint64(math.MaxUint32)) } } diff --git a/vendor/modules.txt b/vendor/modules.txt index 895a55cfa..7cd0ba25c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -89,7 +89,7 @@ github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/options github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/shared github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/version github.com/AzureAD/microsoft-authentication-library-for-go/apps/public -# github.com/VictoriaMetrics/easyproto v0.1.3 +# github.com/VictoriaMetrics/easyproto v0.1.4 ## explicit; go 1.18 github.com/VictoriaMetrics/easyproto # github.com/VictoriaMetrics/fastcache v1.12.2