This commit is contained in:
Sergey Zhemoytel 2024-03-15 15:50:09 +00:00
parent dd87340df4
commit d7fdc9b1ae

View file

@ -32,7 +32,7 @@ docker compose up
%setup -qn compose-%{version} %setup -qn compose-%{version}
%build %build
export GOPROXY=direct export GOPROXY=https://proxy.golang.org/cached-only
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=%{version}" -o bin/%{oname} ./cmd CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=%{version}" -o bin/%{oname} ./cmd
upx bin/%{oname} upx bin/%{oname}