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.12.0 to v1.13.0
This commit is contained in:
parent
99a6c212e8
commit
00277583f9
7 changed files with 36 additions and 4 deletions
2
go.mod
2
go.mod
|
@ -31,7 +31,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.12.0
|
github.com/valyala/gozstd v1.13.0
|
||||||
github.com/valyala/histogram v1.2.0
|
github.com/valyala/histogram v1.2.0
|
||||||
github.com/valyala/quicktemplate v1.7.0
|
github.com/valyala/quicktemplate v1.7.0
|
||||||
go.uber.org/atomic v1.9.0 // indirect
|
go.uber.org/atomic v1.9.0 // indirect
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -942,8 +942,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.12.0 h1:CVG/hZKv3VqgiesiDrFrkgTIwDr5+9yaRaFDgMso5lI=
|
github.com/valyala/gozstd v1.13.0 h1:M9qgbElBZsHlh8a4jjHO4lY42xLJeb+KWVBwFBAapRo=
|
||||||
github.com/valyala/gozstd v1.12.0/go.mod h1:y5Ew47GLlP37EkTB+B4s7r6A5rdaeB7ftbl9zoYiIPQ=
|
github.com/valyala/gozstd v1.13.0/go.mod h1:y5Ew47GLlP37EkTB+B4s7r6A5rdaeB7ftbl9zoYiIPQ=
|
||||||
github.com/valyala/histogram v1.1.2/go.mod h1:CZAr6gK9dbD7hYx2s8WSPh0p5x5wETjC+2b3PJVtEdg=
|
github.com/valyala/histogram v1.1.2/go.mod h1:CZAr6gK9dbD7hYx2s8WSPh0p5x5wETjC+2b3PJVtEdg=
|
||||||
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=
|
||||||
|
|
22
vendor/github.com/valyala/gozstd/Makefile
generated
vendored
22
vendor/github.com/valyala/gozstd/Makefile
generated
vendored
|
@ -4,6 +4,8 @@ GOOS_GOARCH := $(GOOS)_$(GOARCH)
|
||||||
GOOS_GOARCH_NATIVE := $(shell go env GOHOSTOS)_$(shell go env GOHOSTARCH)
|
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.0
|
ZSTD_VERSION ?= v1.5.0
|
||||||
|
MUSL_BUILDER_IMAGE=golang:1.17.1-alpine
|
||||||
|
BUILDER_IMAGE := local/builder_musl:2.0.0-$(shell echo $(MUSL_BUILDER_IMAGE) | tr : _)
|
||||||
|
|
||||||
.PHONY: libzstd.a
|
.PHONY: libzstd.a
|
||||||
|
|
||||||
|
@ -22,7 +24,27 @@ ifeq ($(GOOS_GOARCH),linux_arm64)
|
||||||
cd zstd/lib && CC=aarch64-linux-gnu-gcc ZSTD_LEGACY_SUPPORT=0 MOREFLAGS=$(MOREFLAGS) $(MAKE) clean libzstd.a
|
cd zstd/lib && CC=aarch64-linux-gnu-gcc ZSTD_LEGACY_SUPPORT=0 MOREFLAGS=$(MOREFLAGS) $(MAKE) clean libzstd.a
|
||||||
mv zstd/lib/libzstd.a libzstd_linux_arm64.a
|
mv zstd/lib/libzstd.a libzstd_linux_arm64.a
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(GOOS_GOARCH),linux_musl_amd64)
|
||||||
|
cd zstd/lib && ZSTD_LEGACY_SUPPORT=0 MOREFLAGS=$(MOREFLAGS) $(MAKE) clean libzstd.a
|
||||||
|
mv zstd/lib/libzstd.a libzstd_linux_musl_amd64.a
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
package-builder:
|
||||||
|
(docker image ls --format '{{.Repository}}:{{.Tag}}' | grep -q '$(BUILDER_IMAGE)$$') \
|
||||||
|
|| docker build \
|
||||||
|
--build-arg builder_image=$(MUSL_BUILDER_IMAGE) \
|
||||||
|
--tag $(BUILDER_IMAGE) \
|
||||||
|
builder
|
||||||
|
|
||||||
|
package-musl: package-builder
|
||||||
|
docker run --rm \
|
||||||
|
--user $(shell id -u):$(shell id -g) \
|
||||||
|
--mount type=bind,src="$(shell pwd)",dst=/zstd \
|
||||||
|
-w /zstd \
|
||||||
|
$(DOCKER_OPTS) \
|
||||||
|
$(BUILDER_IMAGE) \
|
||||||
|
sh -c "GOOS=linux_musl make clean libzstd.a"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(LIBZSTD_NAME)
|
rm -f $(LIBZSTD_NAME)
|
||||||
|
|
2
vendor/github.com/valyala/gozstd/libzstd_linux_amd64.go
generated
vendored
2
vendor/github.com/valyala/gozstd/libzstd_linux_amd64.go
generated
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
// +build !musl
|
||||||
|
|
||||||
package gozstd
|
package gozstd
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
BIN
vendor/github.com/valyala/gozstd/libzstd_linux_musl_amd64.a
generated
vendored
Normal file
BIN
vendor/github.com/valyala/gozstd/libzstd_linux_musl_amd64.a
generated
vendored
Normal file
Binary file not shown.
8
vendor/github.com/valyala/gozstd/libzstd_linux_musl_amd64.go
generated
vendored
Normal file
8
vendor/github.com/valyala/gozstd/libzstd_linux_musl_amd64.go
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// +build musl
|
||||||
|
|
||||||
|
package gozstd
|
||||||
|
|
||||||
|
/*
|
||||||
|
#cgo LDFLAGS: ${SRCDIR}/libzstd_linux_musl_amd64.a
|
||||||
|
*/
|
||||||
|
import "C"
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -209,7 +209,7 @@ github.com/valyala/fastrand
|
||||||
# github.com/valyala/fasttemplate v1.2.1
|
# github.com/valyala/fasttemplate v1.2.1
|
||||||
## explicit
|
## explicit
|
||||||
github.com/valyala/fasttemplate
|
github.com/valyala/fasttemplate
|
||||||
# github.com/valyala/gozstd v1.12.0
|
# github.com/valyala/gozstd v1.13.0
|
||||||
## explicit
|
## explicit
|
||||||
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