diff --git a/.gitignore b/.gitignore index d869187..66dbe1d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ /go-tools-2020.2.tar.gz /go-tools-2020.2.1.tar.gz /go-tools-2021.1.tar.gz +/go-tools-2021.1.2.tar.gz +/go-tools-852a31a10f5fc943bff9b7857d352b317e1bcc3e.tar.gz diff --git a/golang-honnef-tools.spec b/golang-honnef-tools.spec index eebb414..38913b3 100644 --- a/golang-honnef-tools.spec +++ b/golang-honnef-tools.spec @@ -1,11 +1,11 @@ -# Generated by go2rpm +# Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/dominikh/go-tools %global goipath honnef.co/go/tools %global forgeurl https://github.com/dominikh/go-tools -Version: 2021.1 -%global tag 2021.1 +Version: 2021.1.2 +%global commit 852a31a10f5fc943bff9b7857d352b317e1bcc3e %gometa @@ -27,15 +27,21 @@ Source0: %{gosource} BuildRequires: golang(github.com/BurntSushi/toml) BuildRequires: golang(golang.org/x/tools/go/analysis) -BuildRequires: golang(golang.org/x/tools/go/analysis/analysistest) BuildRequires: golang(golang.org/x/tools/go/analysis/passes/inspect) BuildRequires: golang(golang.org/x/tools/go/ast/astutil) BuildRequires: golang(golang.org/x/tools/go/ast/inspector) BuildRequires: golang(golang.org/x/tools/go/buildutil) +BuildRequires: golang(golang.org/x/tools/go/gcexportdata) BuildRequires: golang(golang.org/x/tools/go/loader) BuildRequires: golang(golang.org/x/tools/go/packages) BuildRequires: golang(golang.org/x/tools/go/types/objectpath) BuildRequires: golang(golang.org/x/tools/go/types/typeutil) +BuildRequires: golang(golang.org/x/tools/txtar) + +%if %{with check} +# Tests +BuildRequires: golang(golang.org/x/tools/go/analysis/analysistest) +%endif %description %{common_description} @@ -57,8 +63,7 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check -# https://github.com/dominikh/go-tools/issues/687 -%gocheck -d unused -d staticcheck +%gocheck -d staticcheck -d go/ir -d lintcmd %endif %files diff --git a/sources b/sources index 06c9188..fb778c9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (go-tools-2021.1.tar.gz) = 270febf768515d3ce0aea65b7407d63e87e9611ab2ff1757380929e5f2373c75327b70e5194adfe935841c7319ad15c54841915e5cbfde76e5ac00e82bf2c8b9 +SHA512 (go-tools-852a31a10f5fc943bff9b7857d352b317e1bcc3e.tar.gz) = 68e3405d03a124a4e568ccc97cd3df088fa7d78e8355862bb0f95ce68f5e21bf34bfe0f2737eb0c385a2dbd4462726b1846504847e7e6bfbeab5d9563dc81577