This commit is contained in:
Sergey Zhemoytel 2024-10-05 19:56:46 +00:00
parent ff6b89fcec
commit cdf90749a5

View file

@ -4,7 +4,7 @@
%define ver RELEASE %define ver RELEASE
%define commit 060b0762fb17e26829fdcc5b43e42fdc437aeefc %define commit 060b0762fb17e26829fdcc5b43e42fdc437aeefc
%define shortcommit %(c=%{commit}; echo ${c:0:12}) %define shortcommit %(c=%{commit}; echo ${c:0:12})
%define secscan 1 %define secscan 0
Name: minio-client Name: minio-client
Version: 20241002 Version: 20241002
@ -36,7 +36,7 @@ trivy fs --scanners vuln --format cosign-vuln .
%endif %endif
%build %build
export GOPROXY=direct export GOPROXY=https://proxy.golang.org/cached-only
#make BUILD_LDFLAGS="-X cmd.Version=RELEASE.%{rel}" #make BUILD_LDFLAGS="-X cmd.Version=RELEASE.%{rel}"
GO111MODULE=on CGO_ENABLED=0 go build -trimpath -tags kqueue \ GO111MODULE=on CGO_ENABLED=0 go build -trimpath -tags kqueue \
-ldflags="-s -w \ -ldflags="-s -w \
@ -55,7 +55,7 @@ install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%{_bindir}/%{name} %{_bindir}/%{name}
%check %check
export GOPROXY=direct export GOPROXY=https://proxy.golang.org/cached-only
go test ./... go test ./...