forked from pool/golangci-lint
Accepting request 863902 from home:maciek_borzecki
The golangci-lint package is an immensely useful and popular linter. It'd be great to have a package in the repositories. OBS-URL: https://build.opensuse.org/request/show/863902 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/golangci-lint?expand=0&rev=1
This commit is contained in:
commit
0a9bb3caec
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
23
_service
Normal file
23
_service
Normal file
@ -0,0 +1,23 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="localonly">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/golangci/golangci-lint.git</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="revision">v1.35.2</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="filename">golangci-lint</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="recompress" mode="localonly">
|
||||
<param name="file">golangci-lint-*.tar</param>
|
||||
<!-- switch to xz once obs-service-go_modules supports passing compression
|
||||
-->
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service name="go_modules" mode="manual">
|
||||
<!-- compression param is not supported by obs-service-go_modules-0.3.0-1.3
|
||||
-->
|
||||
<!-- <param name="compression">xz</param> -->
|
||||
</service>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/golangci/golangci-lint.git</param>
|
||||
<param name="changesrevision">1da57014f928ec8d56fd240388a8c594a0534a46</param></service></servicedata>
|
3
golangci-lint-1.35.2.tar.gz
Normal file
3
golangci-lint-1.35.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3fa5057021484fa6ca63972b5c5e72ea495f8b338b9a7b86be988d9a198cc132
|
||||
size 1281784
|
61
golangci-lint.spec
Normal file
61
golangci-lint.spec
Normal file
@ -0,0 +1,61 @@
|
||||
#
|
||||
# spec file for package golangci-lint
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: golangci-lint
|
||||
Version: 1.35.2
|
||||
Release: 0
|
||||
Summary: A fast Go linters runner
|
||||
License: GPL-3.0
|
||||
URL: https://github.com/golangci/golangci-run
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
BuildRequires: go
|
||||
BuildRequires: golang-packaging
|
||||
|
||||
%{go_nostrip}
|
||||
|
||||
%description
|
||||
golangci-lint is a fast Go linters runner. It runs linters in parallel, uses
|
||||
caching, supports yaml config, has integrations with all major IDE and has
|
||||
dozens of linters included.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q T -D -a 1
|
||||
|
||||
%build
|
||||
# since %%gobuild -mod=vendor cmd/golangci-lint still tries to access the
|
||||
# network, run go build manually instead
|
||||
go build \
|
||||
-v \
|
||||
-buildmode=pie \
|
||||
-mod=vendor \
|
||||
-ldflags "-s -w -X main.version=%{version}" \
|
||||
-o %{name} \
|
||||
cmd/golangci-lint/main.go
|
||||
|
||||
%install
|
||||
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%changelog
|
3
vendor.tar.gz
Normal file
3
vendor.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b49043856ae8d8b7126e14a23389d0ef3b3b8af73748ea335b31c6141ea1702e
|
||||
size 4168770
|
Loading…
Reference in New Issue
Block a user