mirror of
https://abf.rosa.ru/djam/gopls.git
synced 2025-02-23 06:13:06 +00:00
0.16.1
This commit is contained in:
parent
54d8117f36
commit
24253984a8
2 changed files with 21 additions and 3 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
||||||
sources:
|
sources:
|
||||||
gopls-0.16.0.tar.gz: 367f2b1f158a75503e22153eb674ae1864262a97
|
gopls-0.16.1.tar.gz: 0ff863b0e75dc979f69aa524f2c2feaf6f1f7bf5
|
||||||
|
|
22
gopls.spec
22
gopls.spec
|
@ -1,8 +1,9 @@
|
||||||
%define debug %nil
|
%define debug %nil
|
||||||
%define debug_package %nil
|
%define debug_package %nil
|
||||||
|
%define secscan 1
|
||||||
|
|
||||||
Name: gopls
|
Name: gopls
|
||||||
Version: 0.16.0
|
Version: 0.16.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Go language server
|
Summary: Go language server
|
||||||
URL: https://golang.org/x/tools
|
URL: https://golang.org/x/tools
|
||||||
|
@ -12,6 +13,11 @@ Group: Development/Other
|
||||||
BuildRequires: go
|
BuildRequires: go
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: upx
|
BuildRequires: upx
|
||||||
|
%if %{secscan}
|
||||||
|
BuildRequires: clamav
|
||||||
|
BuildRequires: trivy
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
gopls (pronounced "Go please") is the official Go language
|
gopls (pronounced "Go please") is the official Go language
|
||||||
|
@ -20,9 +26,14 @@ to any LSP-compatible editor.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn tools-%{name}-v%{version}
|
%setup -qn tools-%{name}-v%{version}
|
||||||
|
%if %{secscan}
|
||||||
|
clamscan -ir .
|
||||||
|
trivy fs --scanners vuln --format cosign-vuln .
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export GOPROXY=direct
|
export GOPROXY=https://proxy.golang.org/cached-only
|
||||||
pushd gopls
|
pushd gopls
|
||||||
go build --ldflags="-s -w" -o ../bin/%{name} .
|
go build --ldflags="-s -w" -o ../bin/%{name} .
|
||||||
popd
|
popd
|
||||||
|
@ -36,3 +47,10 @@ install -Dm0755 ./bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
%doc %{name}/README.md %{name}/doc LICENSE
|
%doc %{name}/README.md %{name}/doc LICENSE
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%check
|
||||||
|
export GOPROXY=https://proxy.golang.org/cached-only
|
||||||
|
#go test ./...
|
||||||
|
|
||||||
|
%if %{secscan}
|
||||||
|
clamscan -ir %{buildroot}
|
||||||
|
%endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue