From 24253984a865663c06d32164568723a3c90c8678 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Tue, 2 Jul 2024 22:17:58 +0000 Subject: [PATCH] 0.16.1 --- .abf.yml | 2 +- gopls.spec | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.abf.yml b/.abf.yml index 157da20..2d5fa1b 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,2 @@ sources: - gopls-0.16.0.tar.gz: 367f2b1f158a75503e22153eb674ae1864262a97 + gopls-0.16.1.tar.gz: 0ff863b0e75dc979f69aa524f2c2feaf6f1f7bf5 diff --git a/gopls.spec b/gopls.spec index 668b4e2..d99652b 100644 --- a/gopls.spec +++ b/gopls.spec @@ -1,8 +1,9 @@ %define debug %nil %define debug_package %nil +%define secscan 1 Name: gopls -Version: 0.16.0 +Version: 0.16.1 Release: 1 Summary: Go language server URL: https://golang.org/x/tools @@ -12,6 +13,11 @@ Group: Development/Other BuildRequires: go BuildRequires: git-core BuildRequires: upx +%if %{secscan} +BuildRequires: clamav +BuildRequires: trivy +%endif + %description gopls (pronounced "Go please") is the official Go language @@ -20,9 +26,14 @@ to any LSP-compatible editor. %prep %setup -qn tools-%{name}-v%{version} +%if %{secscan} +clamscan -ir . +trivy fs --scanners vuln --format cosign-vuln . +%endif + %build -export GOPROXY=direct +export GOPROXY=https://proxy.golang.org/cached-only pushd gopls go build --ldflags="-s -w" -o ../bin/%{name} . popd @@ -36,3 +47,10 @@ install -Dm0755 ./bin/%{name} %{buildroot}%{_bindir}/%{name} %doc %{name}/README.md %{name}/doc LICENSE %{_bindir}/%{name} +%check +export GOPROXY=https://proxy.golang.org/cached-only +#go test ./... + +%if %{secscan} +clamscan -ir %{buildroot} +%endif