This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #595 from shnups/kor-0.3.0
New ebuild for kor-0.3.0
- Loading branch information
Showing
2 changed files
with
241 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,239 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
inherit go-module | ||
GIT_COMMIT="062aec60fe8a9a4fcab4711ca8217f8051582d16" | ||
|
||
DESCRIPTION="A Golang Tool to discover unused Kubernetes Resources" | ||
HOMEPAGE="https://github.com/yonahd/kor" | ||
|
||
EGO_SUM=( | ||
"github.com/beorn7/perks v1.0.1" | ||
"github.com/beorn7/perks v1.0.1/go.mod" | ||
"github.com/cespare/xxhash/v2 v2.2.0" | ||
"github.com/cespare/xxhash/v2 v2.2.0/go.mod" | ||
"github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod" | ||
"github.com/creack/pty v1.1.9/go.mod" | ||
"github.com/davecgh/go-spew v1.1.0/go.mod" | ||
"github.com/davecgh/go-spew v1.1.1" | ||
"github.com/davecgh/go-spew v1.1.1/go.mod" | ||
"github.com/emicklei/go-restful/v3 v3.10.1" | ||
"github.com/emicklei/go-restful/v3 v3.10.1/go.mod" | ||
"github.com/evanphx/json-patch v5.6.0+incompatible" | ||
"github.com/evanphx/json-patch v5.6.0+incompatible/go.mod" | ||
"github.com/fatih/color v1.16.0" | ||
"github.com/fatih/color v1.16.0/go.mod" | ||
"github.com/go-logr/logr v1.2.0/go.mod" | ||
"github.com/go-logr/logr v1.2.4" | ||
"github.com/go-logr/logr v1.2.4/go.mod" | ||
"github.com/go-openapi/jsonpointer v0.19.6/go.mod" | ||
"github.com/go-openapi/jsonpointer v0.20.0" | ||
"github.com/go-openapi/jsonpointer v0.20.0/go.mod" | ||
"github.com/go-openapi/jsonreference v0.20.2" | ||
"github.com/go-openapi/jsonreference v0.20.2/go.mod" | ||
"github.com/go-openapi/swag v0.22.3/go.mod" | ||
"github.com/go-openapi/swag v0.22.4" | ||
"github.com/go-openapi/swag v0.22.4/go.mod" | ||
"github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572" | ||
"github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod" | ||
"github.com/gogo/protobuf v1.3.2" | ||
"github.com/gogo/protobuf v1.3.2/go.mod" | ||
"github.com/golang/protobuf v1.2.0/go.mod" | ||
"github.com/golang/protobuf v1.3.1/go.mod" | ||
"github.com/golang/protobuf v1.5.0/go.mod" | ||
"github.com/golang/protobuf v1.5.3" | ||
"github.com/golang/protobuf v1.5.3/go.mod" | ||
"github.com/google/gnostic-models v0.6.8" | ||
"github.com/google/gnostic-models v0.6.8/go.mod" | ||
"github.com/google/go-cmp v0.5.5/go.mod" | ||
"github.com/google/go-cmp v0.5.9" | ||
"github.com/google/go-cmp v0.5.9/go.mod" | ||
"github.com/google/gofuzz v1.0.0/go.mod" | ||
"github.com/google/gofuzz v1.2.0" | ||
"github.com/google/gofuzz v1.2.0/go.mod" | ||
"github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1" | ||
"github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod" | ||
"github.com/google/uuid v1.3.0" | ||
"github.com/google/uuid v1.3.0/go.mod" | ||
"github.com/imdario/mergo v0.3.16" | ||
"github.com/imdario/mergo v0.3.16/go.mod" | ||
"github.com/inconshreveable/mousetrap v1.1.0" | ||
"github.com/inconshreveable/mousetrap v1.1.0/go.mod" | ||
"github.com/josharian/intern v1.0.0" | ||
"github.com/josharian/intern v1.0.0/go.mod" | ||
"github.com/json-iterator/go v1.1.12" | ||
"github.com/json-iterator/go v1.1.12/go.mod" | ||
"github.com/kisielk/errcheck v1.5.0/go.mod" | ||
"github.com/kisielk/gotool v1.0.0/go.mod" | ||
"github.com/kr/pretty v0.2.1/go.mod" | ||
"github.com/kr/pretty v0.3.1" | ||
"github.com/kr/pretty v0.3.1/go.mod" | ||
"github.com/kr/pty v1.1.1/go.mod" | ||
"github.com/kr/text v0.1.0/go.mod" | ||
"github.com/kr/text v0.2.0" | ||
"github.com/kr/text v0.2.0/go.mod" | ||
"github.com/mailru/easyjson v0.7.7" | ||
"github.com/mailru/easyjson v0.7.7/go.mod" | ||
"github.com/mattn/go-colorable v0.1.13" | ||
"github.com/mattn/go-colorable v0.1.13/go.mod" | ||
"github.com/mattn/go-isatty v0.0.16/go.mod" | ||
"github.com/mattn/go-isatty v0.0.20" | ||
"github.com/mattn/go-isatty v0.0.20/go.mod" | ||
"github.com/mattn/go-runewidth v0.0.9/go.mod" | ||
"github.com/mattn/go-runewidth v0.0.14" | ||
"github.com/mattn/go-runewidth v0.0.14/go.mod" | ||
"github.com/matttproud/golang_protobuf_extensions v1.0.4" | ||
"github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod" | ||
"github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod" | ||
"github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd" | ||
"github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod" | ||
"github.com/modern-go/reflect2 v1.0.2" | ||
"github.com/modern-go/reflect2 v1.0.2/go.mod" | ||
"github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822" | ||
"github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod" | ||
"github.com/olekukonko/tablewriter v0.0.5" | ||
"github.com/olekukonko/tablewriter v0.0.5/go.mod" | ||
"github.com/onsi/ginkgo/v2 v2.11.0" | ||
"github.com/onsi/ginkgo/v2 v2.11.0/go.mod" | ||
"github.com/onsi/gomega v1.27.10" | ||
"github.com/onsi/gomega v1.27.10/go.mod" | ||
"github.com/pkg/errors v0.9.1" | ||
"github.com/pkg/errors v0.9.1/go.mod" | ||
"github.com/pmezard/go-difflib v1.0.0" | ||
"github.com/pmezard/go-difflib v1.0.0/go.mod" | ||
"github.com/prometheus/client_golang v1.17.0" | ||
"github.com/prometheus/client_golang v1.17.0/go.mod" | ||
"github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16" | ||
"github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16/go.mod" | ||
"github.com/prometheus/common v0.44.0" | ||
"github.com/prometheus/common v0.44.0/go.mod" | ||
"github.com/prometheus/procfs v0.11.1" | ||
"github.com/prometheus/procfs v0.11.1/go.mod" | ||
"github.com/rivo/uniseg v0.2.0/go.mod" | ||
"github.com/rivo/uniseg v0.4.4" | ||
"github.com/rivo/uniseg v0.4.4/go.mod" | ||
"github.com/rogpeppe/go-internal v1.10.0" | ||
"github.com/rogpeppe/go-internal v1.10.0/go.mod" | ||
"github.com/russross/blackfriday/v2 v2.1.0/go.mod" | ||
"github.com/spf13/cobra v1.8.0" | ||
"github.com/spf13/cobra v1.8.0/go.mod" | ||
"github.com/spf13/pflag v1.0.5" | ||
"github.com/spf13/pflag v1.0.5/go.mod" | ||
"github.com/stretchr/objx v0.1.0/go.mod" | ||
"github.com/stretchr/objx v0.4.0/go.mod" | ||
"github.com/stretchr/objx v0.5.0/go.mod" | ||
"github.com/stretchr/testify v1.3.0/go.mod" | ||
"github.com/stretchr/testify v1.7.1/go.mod" | ||
"github.com/stretchr/testify v1.8.0/go.mod" | ||
"github.com/stretchr/testify v1.8.1/go.mod" | ||
"github.com/stretchr/testify v1.8.4" | ||
"github.com/stretchr/testify v1.8.4/go.mod" | ||
"github.com/yuin/goldmark v1.1.27/go.mod" | ||
"github.com/yuin/goldmark v1.2.1/go.mod" | ||
"golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod" | ||
"golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod" | ||
"golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod" | ||
"golang.org/x/mod v0.2.0/go.mod" | ||
"golang.org/x/mod v0.3.0/go.mod" | ||
"golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod" | ||
"golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod" | ||
"golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod" | ||
"golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod" | ||
"golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod" | ||
"golang.org/x/net v0.17.0" | ||
"golang.org/x/net v0.17.0/go.mod" | ||
"golang.org/x/oauth2 v0.10.0" | ||
"golang.org/x/oauth2 v0.10.0/go.mod" | ||
"golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod" | ||
"golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod" | ||
"golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod" | ||
"golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod" | ||
"golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod" | ||
"golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod" | ||
"golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod" | ||
"golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod" | ||
"golang.org/x/sys v0.6.0/go.mod" | ||
"golang.org/x/sys v0.14.0" | ||
"golang.org/x/sys v0.14.0/go.mod" | ||
"golang.org/x/term v0.13.0" | ||
"golang.org/x/term v0.13.0/go.mod" | ||
"golang.org/x/text v0.3.0/go.mod" | ||
"golang.org/x/text v0.3.2/go.mod" | ||
"golang.org/x/text v0.3.3/go.mod" | ||
"golang.org/x/text v0.13.0" | ||
"golang.org/x/text v0.13.0/go.mod" | ||
"golang.org/x/time v0.3.0" | ||
"golang.org/x/time v0.3.0/go.mod" | ||
"golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod" | ||
"golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod" | ||
"golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod" | ||
"golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod" | ||
"golang.org/x/tools v0.11.0" | ||
"golang.org/x/tools v0.11.0/go.mod" | ||
"golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod" | ||
"golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod" | ||
"golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod" | ||
"golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod" | ||
"google.golang.org/appengine v1.6.7" | ||
"google.golang.org/appengine v1.6.7/go.mod" | ||
"google.golang.org/protobuf v1.26.0-rc.1/go.mod" | ||
"google.golang.org/protobuf v1.26.0/go.mod" | ||
"google.golang.org/protobuf v1.31.0" | ||
"google.golang.org/protobuf v1.31.0/go.mod" | ||
"gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod" | ||
"gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c" | ||
"gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod" | ||
"gopkg.in/inf.v0 v0.9.1" | ||
"gopkg.in/inf.v0 v0.9.1/go.mod" | ||
"gopkg.in/yaml.v2 v2.2.8/go.mod" | ||
"gopkg.in/yaml.v2 v2.4.0" | ||
"gopkg.in/yaml.v2 v2.4.0/go.mod" | ||
"gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod" | ||
"gopkg.in/yaml.v3 v3.0.1" | ||
"gopkg.in/yaml.v3 v3.0.1/go.mod" | ||
"k8s.io/api v0.28.3" | ||
"k8s.io/api v0.28.3/go.mod" | ||
"k8s.io/apiextensions-apiserver v0.28.3" | ||
"k8s.io/apiextensions-apiserver v0.28.3/go.mod" | ||
"k8s.io/apimachinery v0.28.3" | ||
"k8s.io/apimachinery v0.28.3/go.mod" | ||
"k8s.io/client-go v0.28.3" | ||
"k8s.io/client-go v0.28.3/go.mod" | ||
"k8s.io/klog/v2 v2.100.1" | ||
"k8s.io/klog/v2 v2.100.1/go.mod" | ||
"k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9" | ||
"k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9/go.mod" | ||
"k8s.io/utils v0.0.0-20230406110748-d93618cff8a2" | ||
"k8s.io/utils v0.0.0-20230406110748-d93618cff8a2/go.mod" | ||
"sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd" | ||
"sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod" | ||
"sigs.k8s.io/structured-merge-diff/v4 v4.2.3" | ||
"sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod" | ||
"sigs.k8s.io/yaml v1.4.0" | ||
"sigs.k8s.io/yaml v1.4.0/go.mod" | ||
) | ||
|
||
go-module_set_globals | ||
SRC_URI="https://github.com/yonahd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz ${EGO_SUM_SRC_URI}" | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
RESTRICT="mirror" | ||
DOCS=(LICENSE README.md) | ||
|
||
DEPEND="" | ||
RDEPEND="${DEPEND}" | ||
BDEPEND=">=dev-lang/go-1.21" | ||
|
||
S="${WORKDIR}/${P}" | ||
|
||
src_compile() { | ||
go build -v -work -o "${PN}" || die | ||
} | ||
|
||
src_install() { | ||
dobin ${PN} | ||
einstalldocs | ||
} |