mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
vendor: update github.com/valyala/gozstd from v1.15.1 to v1.16.0
This commit is contained in:
parent
8b36044c93
commit
21bd204e81
10 changed files with 31 additions and 7 deletions
2
go.mod
2
go.mod
|
@ -22,7 +22,7 @@ require (
|
||||||
github.com/valyala/fastjson v1.6.3
|
github.com/valyala/fastjson v1.6.3
|
||||||
github.com/valyala/fastrand v1.1.0
|
github.com/valyala/fastrand v1.1.0
|
||||||
github.com/valyala/fasttemplate v1.2.1
|
github.com/valyala/fasttemplate v1.2.1
|
||||||
github.com/valyala/gozstd v1.15.1
|
github.com/valyala/gozstd v1.16.0
|
||||||
github.com/valyala/quicktemplate v1.7.0
|
github.com/valyala/quicktemplate v1.7.0
|
||||||
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
||||||
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
|
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -976,8 +976,8 @@ github.com/valyala/fastrand v1.1.0/go.mod h1:HWqCzkrkg6QXT8V2EXWvXCoow7vLwOFN002
|
||||||
github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
|
github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
|
||||||
github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4=
|
github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4=
|
||||||
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
|
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
|
||||||
github.com/valyala/gozstd v1.15.1 h1:hpmJYWOpNs0rjDOMdbwWZplfNlfh1tOy0v7XiR9+iGQ=
|
github.com/valyala/gozstd v1.16.0 h1:nunfqpzx8Nq9itKYCgvmKlgM4LBQ8rcQPJ2ARKISu+0=
|
||||||
github.com/valyala/gozstd v1.15.1/go.mod h1:y5Ew47GLlP37EkTB+B4s7r6A5rdaeB7ftbl9zoYiIPQ=
|
github.com/valyala/gozstd v1.16.0/go.mod h1:y5Ew47GLlP37EkTB+B4s7r6A5rdaeB7ftbl9zoYiIPQ=
|
||||||
github.com/valyala/histogram v1.2.0 h1:wyYGAZZt3CpwUiIb9AU/Zbllg1llXyrtApRS815OLoQ=
|
github.com/valyala/histogram v1.2.0 h1:wyYGAZZt3CpwUiIb9AU/Zbllg1llXyrtApRS815OLoQ=
|
||||||
github.com/valyala/histogram v1.2.0/go.mod h1:Hb4kBwb4UxsaNbbbh+RRz8ZR6pdodR57tzWUS3BUzXY=
|
github.com/valyala/histogram v1.2.0/go.mod h1:Hb4kBwb4UxsaNbbbh+RRz8ZR6pdodR57tzWUS3BUzXY=
|
||||||
github.com/valyala/quicktemplate v1.7.0 h1:LUPTJmlVcb46OOUY3IeD9DojFpAVbsG+5WFTcjMJzCM=
|
github.com/valyala/quicktemplate v1.7.0 h1:LUPTJmlVcb46OOUY3IeD9DojFpAVbsG+5WFTcjMJzCM=
|
||||||
|
|
18
vendor/github.com/valyala/gozstd/Makefile
generated
vendored
18
vendor/github.com/valyala/gozstd/Makefile
generated
vendored
|
@ -5,12 +5,11 @@ GOOS_GOARCH_NATIVE := $(shell go env GOHOSTOS)_$(shell go env GOHOSTARCH)
|
||||||
LIBZSTD_NAME := libzstd_$(GOOS_GOARCH).a
|
LIBZSTD_NAME := libzstd_$(GOOS_GOARCH).a
|
||||||
ZSTD_VERSION ?= v1.5.1
|
ZSTD_VERSION ?= v1.5.1
|
||||||
MUSL_BUILDER_IMAGE=golang:1.17.6-alpine
|
MUSL_BUILDER_IMAGE=golang:1.17.6-alpine
|
||||||
BUILDER_IMAGE := local/builder_musl:2.0.0-$(shell echo $(MUSL_BUILDER_IMAGE) | tr : _)
|
BUILDER_IMAGE := local/builder_musl:2.0.0-$(shell echo $(MUSL_BUILDER_IMAGE) | tr : _)-1
|
||||||
|
|
||||||
.PHONY: libzstd.a
|
.PHONY: libzstd.a $(LIBZSTD_NAME)
|
||||||
|
|
||||||
libzstd.a: $(LIBZSTD_NAME)
|
libzstd.a: $(LIBZSTD_NAME)
|
||||||
|
|
||||||
$(LIBZSTD_NAME):
|
$(LIBZSTD_NAME):
|
||||||
ifeq ($(GOOS_GOARCH),$(GOOS_GOARCH_NATIVE))
|
ifeq ($(GOOS_GOARCH),$(GOOS_GOARCH_NATIVE))
|
||||||
cd zstd/lib && ZSTD_LEGACY_SUPPORT=0 MOREFLAGS=$(MOREFLAGS) $(MAKE) clean libzstd.a
|
cd zstd/lib && ZSTD_LEGACY_SUPPORT=0 MOREFLAGS=$(MOREFLAGS) $(MAKE) clean libzstd.a
|
||||||
|
@ -28,6 +27,10 @@ ifeq ($(GOOS_GOARCH),linux_musl_amd64)
|
||||||
cd zstd/lib && ZSTD_LEGACY_SUPPORT=0 MOREFLAGS=$(MOREFLAGS) $(MAKE) clean libzstd.a
|
cd zstd/lib && ZSTD_LEGACY_SUPPORT=0 MOREFLAGS=$(MOREFLAGS) $(MAKE) clean libzstd.a
|
||||||
mv zstd/lib/libzstd.a libzstd_linux_musl_amd64.a
|
mv zstd/lib/libzstd.a libzstd_linux_musl_amd64.a
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(GOOS_GOARCH),linux_musl_arm64)
|
||||||
|
cd zstd/lib && ZSTD_LEGACY_SUPPORT=0 MOREFLAGS=$(MOREFLAGS) $(MAKE) clean libzstd.a
|
||||||
|
mv zstd/lib/libzstd.a libzstd_linux_musl_arm64.a
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
package-builder:
|
package-builder:
|
||||||
|
@ -45,6 +48,15 @@ package-musl: package-builder
|
||||||
$(DOCKER_OPTS) \
|
$(DOCKER_OPTS) \
|
||||||
$(BUILDER_IMAGE) \
|
$(BUILDER_IMAGE) \
|
||||||
sh -c "GOOS=linux_musl make clean libzstd.a"
|
sh -c "GOOS=linux_musl make clean libzstd.a"
|
||||||
|
docker run --rm \
|
||||||
|
--user $(shell id -u):$(shell id -g) \
|
||||||
|
--mount type=bind,src="$(shell pwd)",dst=/zstd \
|
||||||
|
--env CC=/opt/cross-builder/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc \
|
||||||
|
-w /zstd \
|
||||||
|
$(DOCKER_OPTS) \
|
||||||
|
$(BUILDER_IMAGE) \
|
||||||
|
sh -c "GOARCH=arm64 GOOS=linux_musl make clean libzstd.a"
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(LIBZSTD_NAME)
|
rm -f $(LIBZSTD_NAME)
|
||||||
|
|
BIN
vendor/github.com/valyala/gozstd/libzstd_darwin_amd64.a
generated
vendored
BIN
vendor/github.com/valyala/gozstd/libzstd_darwin_amd64.a
generated
vendored
Binary file not shown.
BIN
vendor/github.com/valyala/gozstd/libzstd_darwin_arm64.a
generated
vendored
BIN
vendor/github.com/valyala/gozstd/libzstd_darwin_arm64.a
generated
vendored
Binary file not shown.
BIN
vendor/github.com/valyala/gozstd/libzstd_freebsd_amd64.a
generated
vendored
BIN
vendor/github.com/valyala/gozstd/libzstd_freebsd_amd64.a
generated
vendored
Binary file not shown.
3
vendor/github.com/valyala/gozstd/libzstd_linux_arm64.go
generated
vendored
3
vendor/github.com/valyala/gozstd/libzstd_linux_arm64.go
generated
vendored
|
@ -1,3 +1,6 @@
|
||||||
|
//go:build !musl
|
||||||
|
// +build !musl
|
||||||
|
|
||||||
package gozstd
|
package gozstd
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
BIN
vendor/github.com/valyala/gozstd/libzstd_linux_musl_arm64.a
generated
vendored
Normal file
BIN
vendor/github.com/valyala/gozstd/libzstd_linux_musl_arm64.a
generated
vendored
Normal file
Binary file not shown.
9
vendor/github.com/valyala/gozstd/libzstd_linux_musl_arm64.go
generated
vendored
Normal file
9
vendor/github.com/valyala/gozstd/libzstd_linux_musl_arm64.go
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
//go:build musl
|
||||||
|
// +build musl
|
||||||
|
|
||||||
|
package gozstd
|
||||||
|
|
||||||
|
/*
|
||||||
|
#cgo LDFLAGS: ${SRCDIR}/libzstd_linux_musl_arm64.a
|
||||||
|
*/
|
||||||
|
import "C"
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -231,7 +231,7 @@ github.com/valyala/fastrand
|
||||||
# github.com/valyala/fasttemplate v1.2.1
|
# github.com/valyala/fasttemplate v1.2.1
|
||||||
## explicit; go 1.12
|
## explicit; go 1.12
|
||||||
github.com/valyala/fasttemplate
|
github.com/valyala/fasttemplate
|
||||||
# github.com/valyala/gozstd v1.15.1
|
# github.com/valyala/gozstd v1.16.0
|
||||||
## explicit; go 1.12
|
## explicit; go 1.12
|
||||||
github.com/valyala/gozstd
|
github.com/valyala/gozstd
|
||||||
# github.com/valyala/histogram v1.2.0
|
# github.com/valyala/histogram v1.2.0
|
||||||
|
|
Loading…
Reference in a new issue