# Copyright 2024 NymphOS Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module shell-completion

DESCRIPTION="Simple and flexible tool for managing secrets"
HOMEPAGE="https://github.com/getsops/${PN}"
SRC_URI="https://raw.githubusercontent.com/urfave/cli/b2f61fafb88722b6a05624d5bad3e0541b65900a/autocomplete/bash_autocomplete -> urfave-cli-b2f61fafb88722b6a05624d5bad3e0541b65900a-bash_autocomplete
	https://raw.githubusercontent.com/urfave/cli/24197c9938b2b5fd633be9257157832b129d4b60/autocomplete/zsh_autocomplete -> urfave-cli-24197c9938b2b5fd633be9257157832b129d4b60-zsh_autocomplete"
if [[ "${PV}" = 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="${HOMEPAGE}.git"

	src_unpack() {
		git-r3_src_unpack
		go-module_live_vendor
	}
else
	EGO_SUM=(
		"c2sp.org/CCTV/age v0.0.0-20240306222714-3ec4d716e805"
		"c2sp.org/CCTV/age v0.0.0-20240306222714-3ec4d716e805/go.mod"
		"cel.dev/expr v0.16.1"
		"cel.dev/expr v0.16.1/go.mod"
		"cloud.google.com/go v0.26.0/go.mod"
		"cloud.google.com/go v0.116.0"
		"cloud.google.com/go v0.116.0/go.mod"
		"cloud.google.com/go/auth v0.10.2"
		"cloud.google.com/go/auth v0.10.2/go.mod"
		"cloud.google.com/go/auth/oauth2adapt v0.2.5"
		"cloud.google.com/go/auth/oauth2adapt v0.2.5/go.mod"
		"cloud.google.com/go/compute/metadata v0.5.2"
		"cloud.google.com/go/compute/metadata v0.5.2/go.mod"
		"cloud.google.com/go/iam v1.2.2"
		"cloud.google.com/go/iam v1.2.2/go.mod"
		"cloud.google.com/go/kms v1.20.1"
		"cloud.google.com/go/kms v1.20.1/go.mod"
		"cloud.google.com/go/logging v1.12.0"
		"cloud.google.com/go/logging v1.12.0/go.mod"
		"cloud.google.com/go/longrunning v0.6.2"
		"cloud.google.com/go/longrunning v0.6.2/go.mod"
		"cloud.google.com/go/monitoring v1.21.2"
		"cloud.google.com/go/monitoring v1.21.2/go.mod"
		"cloud.google.com/go/storage v1.47.0"
		"cloud.google.com/go/storage v1.47.0/go.mod"
		"cloud.google.com/go/trace v1.11.2"
		"cloud.google.com/go/trace v1.11.2/go.mod"
		"dario.cat/mergo v1.0.1"
		"dario.cat/mergo v1.0.1/go.mod"
		"filippo.io/age v1.2.0"
		"filippo.io/age v1.2.0/go.mod"
		"filippo.io/edwards25519 v1.1.0"
		"filippo.io/edwards25519 v1.1.0/go.mod"
		"github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0"
		"github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0/go.mod"
		"github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0"
		"github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0/go.mod"
		"github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.0"
		"github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.0/go.mod"
		"github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0"
		"github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod"
		"github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.3.0"
		"github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.3.0/go.mod"
		"github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.1.0"
		"github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.1.0/go.mod"
		"github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161"
		"github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod"
		"github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1"
		"github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod"
		"github.com/AzureAD/microsoft-authentication-library-for-go v1.3.1"
		"github.com/AzureAD/microsoft-authentication-library-for-go v1.3.1/go.mod"
		"github.com/BurntSushi/toml v0.3.1/go.mod"
		"github.com/BurntSushi/toml v1.4.0/go.mod"
		"github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.24.1"
		"github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.24.1/go.mod"
		"github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1"
		"github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1/go.mod"
		"github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.48.1"
		"github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.48.1/go.mod"
		"github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1"
		"github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1/go.mod"
		"github.com/Microsoft/go-winio v0.6.2"
		"github.com/Microsoft/go-winio v0.6.2/go.mod"
		"github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5"
		"github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod"
		"github.com/ProtonMail/go-crypto v1.1.3"
		"github.com/ProtonMail/go-crypto v1.1.3/go.mod"
		"github.com/aws/aws-sdk-go-v2 v1.32.6"
		"github.com/aws/aws-sdk-go-v2 v1.32.6/go.mod"
		"github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7"
		"github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7/go.mod"
		"github.com/aws/aws-sdk-go-v2/config v1.28.6"
		"github.com/aws/aws-sdk-go-v2/config v1.28.6/go.mod"
		"github.com/aws/aws-sdk-go-v2/credentials v1.17.47"
		"github.com/aws/aws-sdk-go-v2/credentials v1.17.47/go.mod"
		"github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.21"
		"github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.21/go.mod"
		"github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.42"
		"github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.42/go.mod"
		"github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.25"
		"github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.25/go.mod"
		"github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.25"
		"github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.25/go.mod"
		"github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1"
		"github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1/go.mod"
		"github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.25"
		"github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.25/go.mod"
		"github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1"
		"github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1/go.mod"
		"github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.6"
		"github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.6/go.mod"
		"github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6"
		"github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6/go.mod"
		"github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.6"
		"github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.6/go.mod"
		"github.com/aws/aws-sdk-go-v2/service/kms v1.37.7"
		"github.com/aws/aws-sdk-go-v2/service/kms v1.37.7/go.mod"
		"github.com/aws/aws-sdk-go-v2/service/s3 v1.70.0"
		"github.com/aws/aws-sdk-go-v2/service/s3 v1.70.0/go.mod"
		"github.com/aws/aws-sdk-go-v2/service/sso v1.24.7"
		"github.com/aws/aws-sdk-go-v2/service/sso v1.24.7/go.mod"
		"github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6"
		"github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6/go.mod"
		"github.com/aws/aws-sdk-go-v2/service/sts v1.33.2"
		"github.com/aws/aws-sdk-go-v2/service/sts v1.33.2/go.mod"
		"github.com/aws/smithy-go v1.22.1"
		"github.com/aws/smithy-go v1.22.1/go.mod"
		"github.com/blang/semver v3.5.1+incompatible"
		"github.com/blang/semver v3.5.1+incompatible/go.mod"
		"github.com/cenkalti/backoff/v4 v4.3.0"
		"github.com/cenkalti/backoff/v4 v4.3.0/go.mod"
		"github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod"
		"github.com/census-instrumentation/opencensus-proto v0.4.1"
		"github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod"
		"github.com/cespare/xxhash/v2 v2.3.0"
		"github.com/cespare/xxhash/v2 v2.3.0/go.mod"
		"github.com/client9/misspell v0.3.4/go.mod"
		"github.com/cloudflare/circl v1.4.0"
		"github.com/cloudflare/circl v1.4.0/go.mod"
		"github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod"
		"github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78"
		"github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78/go.mod"
		"github.com/containerd/continuity v0.4.3"
		"github.com/containerd/continuity v0.4.3/go.mod"
		"github.com/cpuguy83/go-md2man/v2 v2.0.5"
		"github.com/cpuguy83/go-md2man/v2 v2.0.5/go.mod"
		"github.com/creack/pty v1.1.18"
		"github.com/creack/pty v1.1.18/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/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f"
		"github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod"
		"github.com/docker/cli v27.3.1+incompatible"
		"github.com/docker/cli v27.3.1+incompatible/go.mod"
		"github.com/docker/docker v27.3.1+incompatible"
		"github.com/docker/docker v27.3.1+incompatible/go.mod"
		"github.com/docker/go-connections v0.5.0"
		"github.com/docker/go-connections v0.5.0/go.mod"
		"github.com/docker/go-units v0.5.0"
		"github.com/docker/go-units v0.5.0/go.mod"
		"github.com/envoyproxy/go-control-plane v0.9.0/go.mod"
		"github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod"
		"github.com/envoyproxy/go-control-plane v0.9.4/go.mod"
		"github.com/envoyproxy/go-control-plane v0.13.0"
		"github.com/envoyproxy/go-control-plane v0.13.0/go.mod"
		"github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod"
		"github.com/envoyproxy/protoc-gen-validate v1.1.0"
		"github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod"
		"github.com/fatih/color v1.18.0"
		"github.com/fatih/color v1.18.0/go.mod"
		"github.com/felixge/httpsnoop v1.0.4"
		"github.com/felixge/httpsnoop v1.0.4/go.mod"
		"github.com/getsops/gopgagent v0.0.0-20240527072608-0c14999532fe"
		"github.com/getsops/gopgagent v0.0.0-20240527072608-0c14999532fe/go.mod"
		"github.com/go-jose/go-jose/v4 v4.0.4"
		"github.com/go-jose/go-jose/v4 v4.0.4/go.mod"
		"github.com/go-logr/logr v1.2.2/go.mod"
		"github.com/go-logr/logr v1.4.2"
		"github.com/go-logr/logr v1.4.2/go.mod"
		"github.com/go-logr/stdr v1.2.2"
		"github.com/go-logr/stdr v1.2.2/go.mod"
		"github.com/go-sql-driver/mysql v1.8.1"
		"github.com/go-sql-driver/mysql v1.8.1/go.mod"
		"github.com/go-test/deep v1.0.2"
		"github.com/go-test/deep v1.0.2/go.mod"
		"github.com/go-viper/mapstructure/v2 v2.2.1"
		"github.com/go-viper/mapstructure/v2 v2.2.1/go.mod"
		"github.com/gogo/protobuf v1.3.2"
		"github.com/gogo/protobuf v1.3.2/go.mod"
		"github.com/golang-jwt/jwt/v5 v5.2.1"
		"github.com/golang-jwt/jwt/v5 v5.2.1/go.mod"
		"github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod"
		"github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod"
		"github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da"
		"github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod"
		"github.com/golang/mock v1.1.1/go.mod"
		"github.com/golang/protobuf v1.2.0/go.mod"
		"github.com/golang/protobuf v1.3.2/go.mod"
		"github.com/golang/protobuf v1.4.0-rc.1/go.mod"
		"github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod"
		"github.com/golang/protobuf v1.4.0-rc.2/go.mod"
		"github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod"
		"github.com/golang/protobuf v1.4.0/go.mod"
		"github.com/golang/protobuf v1.4.1/go.mod"
		"github.com/golang/protobuf v1.4.3/go.mod"
		"github.com/golang/protobuf v1.5.4"
		"github.com/golang/protobuf v1.5.4/go.mod"
		"github.com/google/go-cmp v0.2.0/go.mod"
		"github.com/google/go-cmp v0.3.0/go.mod"
		"github.com/google/go-cmp v0.3.1/go.mod"
		"github.com/google/go-cmp v0.4.0/go.mod"
		"github.com/google/go-cmp v0.5.0/go.mod"
		"github.com/google/go-cmp v0.5.3/go.mod"
		"github.com/google/go-cmp v0.6.0"
		"github.com/google/go-cmp v0.6.0/go.mod"
		"github.com/google/martian/v3 v3.3.3"
		"github.com/google/martian/v3 v3.3.3/go.mod"
		"github.com/google/s2a-go v0.1.8"
		"github.com/google/s2a-go v0.1.8/go.mod"
		"github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510"
		"github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod"
		"github.com/google/uuid v1.1.2/go.mod"
		"github.com/google/uuid v1.6.0"
		"github.com/google/uuid v1.6.0/go.mod"
		"github.com/googleapis/enterprise-certificate-proxy v0.3.4"
		"github.com/googleapis/enterprise-certificate-proxy v0.3.4/go.mod"
		"github.com/googleapis/gax-go/v2 v2.14.0"
		"github.com/googleapis/gax-go/v2 v2.14.0/go.mod"
		"github.com/goware/prefixer v0.0.0-20160118172347-395022866408"
		"github.com/goware/prefixer v0.0.0-20160118172347-395022866408/go.mod"
		"github.com/hashicorp/errwrap v1.0.0/go.mod"
		"github.com/hashicorp/errwrap v1.1.0"
		"github.com/hashicorp/errwrap v1.1.0/go.mod"
		"github.com/hashicorp/go-cleanhttp v0.5.2"
		"github.com/hashicorp/go-cleanhttp v0.5.2/go.mod"
		"github.com/hashicorp/go-hclog v1.6.3"
		"github.com/hashicorp/go-hclog v1.6.3/go.mod"
		"github.com/hashicorp/go-multierror v1.1.1"
		"github.com/hashicorp/go-multierror v1.1.1/go.mod"
		"github.com/hashicorp/go-retryablehttp v0.7.7"
		"github.com/hashicorp/go-retryablehttp v0.7.7/go.mod"
		"github.com/hashicorp/go-rootcerts v1.0.2"
		"github.com/hashicorp/go-rootcerts v1.0.2/go.mod"
		"github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8"
		"github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8/go.mod"
		"github.com/hashicorp/go-secure-stdlib/strutil v0.1.2"
		"github.com/hashicorp/go-secure-stdlib/strutil v0.1.2/go.mod"
		"github.com/hashicorp/go-sockaddr v1.0.7"
		"github.com/hashicorp/go-sockaddr v1.0.7/go.mod"
		"github.com/hashicorp/hcl v1.0.0"
		"github.com/hashicorp/hcl v1.0.0/go.mod"
		"github.com/hashicorp/vault/api v1.15.0"
		"github.com/hashicorp/vault/api v1.15.0/go.mod"
		"github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6"
		"github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6/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.3.1"
		"github.com/kr/pretty v0.3.1/go.mod"
		"github.com/kr/text v0.2.0"
		"github.com/kr/text v0.2.0/go.mod"
		"github.com/kylelemons/godebug v1.1.0"
		"github.com/kylelemons/godebug v1.1.0/go.mod"
		"github.com/lib/pq v1.10.9"
		"github.com/lib/pq v1.10.9/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/mitchellh/go-homedir v1.1.0"
		"github.com/mitchellh/go-homedir v1.1.0/go.mod"
		"github.com/mitchellh/go-wordwrap v1.0.1"
		"github.com/mitchellh/go-wordwrap v1.0.1/go.mod"
		"github.com/mitchellh/mapstructure v1.5.0"
		"github.com/mitchellh/mapstructure v1.5.0/go.mod"
		"github.com/moby/docker-image-spec v1.3.1"
		"github.com/moby/docker-image-spec v1.3.1/go.mod"
		"github.com/moby/term v0.5.0"
		"github.com/moby/term v0.5.0/go.mod"
		"github.com/opencontainers/go-digest v1.0.0"
		"github.com/opencontainers/go-digest v1.0.0/go.mod"
		"github.com/opencontainers/image-spec v1.1.0"
		"github.com/opencontainers/image-spec v1.1.0/go.mod"
		"github.com/opencontainers/runc v1.1.14"
		"github.com/opencontainers/runc v1.1.14/go.mod"
		"github.com/ory/dockertest/v3 v3.11.0"
		"github.com/ory/dockertest/v3 v3.11.0/go.mod"
		"github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c"
		"github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod"
		"github.com/pkg/errors v0.9.1"
		"github.com/pkg/errors v0.9.1/go.mod"
		"github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10"
		"github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod"
		"github.com/pmezard/go-difflib v1.0.0"
		"github.com/pmezard/go-difflib v1.0.0/go.mod"
		"github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod"
		"github.com/redis/go-redis/v9 v9.6.1"
		"github.com/redis/go-redis/v9 v9.6.1/go.mod"
		"github.com/rogpeppe/go-internal v1.12.0"
		"github.com/rogpeppe/go-internal v1.12.0/go.mod"
		"github.com/russross/blackfriday/v2 v2.1.0"
		"github.com/russross/blackfriday/v2 v2.1.0/go.mod"
		"github.com/ryanuber/go-glob v1.0.0"
		"github.com/ryanuber/go-glob v1.0.0/go.mod"
		"github.com/sirupsen/logrus v1.9.3"
		"github.com/sirupsen/logrus v1.9.3/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/objx v0.5.2/go.mod"
		"github.com/stretchr/testify v1.3.0/go.mod"
		"github.com/stretchr/testify v1.7.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/go.mod"
		"github.com/stretchr/testify v1.9.0/go.mod"
		"github.com/stretchr/testify v1.10.0"
		"github.com/stretchr/testify v1.10.0/go.mod"
		"github.com/urfave/cli v1.22.16"
		"github.com/urfave/cli v1.22.16/go.mod"
		"github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod"
		"github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb"
		"github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod"
		"github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415"
		"github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod"
		"github.com/xeipuuv/gojsonschema v1.2.0"
		"github.com/xeipuuv/gojsonschema v1.2.0/go.mod"
		"github.com/yuin/goldmark v1.1.27/go.mod"
		"github.com/yuin/goldmark v1.2.1/go.mod"
		"go.opencensus.io v0.24.0"
		"go.opencensus.io v0.24.0/go.mod"
		"go.opentelemetry.io/contrib/detectors/gcp v1.29.0"
		"go.opentelemetry.io/contrib/detectors/gcp v1.29.0/go.mod"
		"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0"
		"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0/go.mod"
		"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0"
		"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0/go.mod"
		"go.opentelemetry.io/otel v1.30.0"
		"go.opentelemetry.io/otel v1.30.0/go.mod"
		"go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.29.0"
		"go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.29.0/go.mod"
		"go.opentelemetry.io/otel/metric v1.30.0"
		"go.opentelemetry.io/otel/metric v1.30.0/go.mod"
		"go.opentelemetry.io/otel/sdk v1.29.0"
		"go.opentelemetry.io/otel/sdk v1.29.0/go.mod"
		"go.opentelemetry.io/otel/sdk/metric v1.29.0"
		"go.opentelemetry.io/otel/sdk/metric v1.29.0/go.mod"
		"go.opentelemetry.io/otel/trace v1.30.0"
		"go.opentelemetry.io/otel/trace v1.30.0/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/crypto v0.29.0"
		"golang.org/x/crypto v0.29.0/go.mod"
		"golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod"
		"golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod"
		"golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod"
		"golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/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-20180724234803-3673e40ba225/go.mod"
		"golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod"
		"golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod"
		"golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod"
		"golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/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.0.0-20201110031124-69a78807bb2b/go.mod"
		"golang.org/x/net v0.31.0"
		"golang.org/x/net v0.31.0/go.mod"
		"golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod"
		"golang.org/x/oauth2 v0.24.0"
		"golang.org/x/oauth2 v0.24.0/go.mod"
		"golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod"
		"golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/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/sync v0.9.0"
		"golang.org/x/sync v0.9.0/go.mod"
		"golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/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-20210616094352-59db8d763f22/go.mod"
		"golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod"
		"golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod"
		"golang.org/x/sys v0.1.0/go.mod"
		"golang.org/x/sys v0.6.0/go.mod"
		"golang.org/x/sys v0.27.0"
		"golang.org/x/sys v0.27.0/go.mod"
		"golang.org/x/term v0.26.0"
		"golang.org/x/term v0.26.0/go.mod"
		"golang.org/x/text v0.3.0/go.mod"
		"golang.org/x/text v0.3.3/go.mod"
		"golang.org/x/text v0.20.0"
		"golang.org/x/text v0.20.0/go.mod"
		"golang.org/x/time v0.8.0"
		"golang.org/x/time v0.8.0/go.mod"
		"golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
		"golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod"
		"golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod"
		"golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod"
		"golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/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/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/api v0.209.0"
		"google.golang.org/api v0.209.0/go.mod"
		"google.golang.org/appengine v1.1.0/go.mod"
		"google.golang.org/appengine v1.4.0/go.mod"
		"google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod"
		"google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod"
		"google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod"
		"google.golang.org/genproto v0.0.0-20241113202542-65e8d215514f"
		"google.golang.org/genproto v0.0.0-20241113202542-65e8d215514f/go.mod"
		"google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28"
		"google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28/go.mod"
		"google.golang.org/genproto/googleapis/rpc v0.0.0-20241113202542-65e8d215514f"
		"google.golang.org/genproto/googleapis/rpc v0.0.0-20241113202542-65e8d215514f/go.mod"
		"google.golang.org/grpc v1.19.0/go.mod"
		"google.golang.org/grpc v1.23.0/go.mod"
		"google.golang.org/grpc v1.25.1/go.mod"
		"google.golang.org/grpc v1.27.0/go.mod"
		"google.golang.org/grpc v1.33.2/go.mod"
		"google.golang.org/grpc v1.68.0"
		"google.golang.org/grpc v1.68.0/go.mod"
		"google.golang.org/grpc/stats/opentelemetry v0.0.0-20240907200651-3ffb98b2c93a"
		"google.golang.org/grpc/stats/opentelemetry v0.0.0-20240907200651-3ffb98b2c93a/go.mod"
		"google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod"
		"google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod"
		"google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod"
		"google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod"
		"google.golang.org/protobuf v1.21.0/go.mod"
		"google.golang.org/protobuf v1.22.0/go.mod"
		"google.golang.org/protobuf v1.23.0/go.mod"
		"google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod"
		"google.golang.org/protobuf v1.25.0/go.mod"
		"google.golang.org/protobuf v1.35.2"
		"google.golang.org/protobuf v1.35.2/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/ini.v1 v1.67.0"
		"gopkg.in/ini.v1 v1.67.0/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"
		"gotest.tools/v3 v3.5.1"
		"gotest.tools/v3 v3.5.1/go.mod"
		"honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod"
		"honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod"
	)

	go-module_set_globals

	SRC_URI+="
		${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz
		${EGO_SUM_SRC_URI}"
	KEYWORDS="~amd64"
fi

LICENSE="MPL-2.0"
SLOT="0"

src_prepare() {
	default

	sed 's/--generate-shell-completion/--generate-bash-completion/g' \
		"${DISTDIR}/urfave-cli-b2f61fafb88722b6a05624d5bad3e0541b65900a-bash_autocomplete" >"${PN}.bash" || die "sed failed"
	sed "s/--generate-shell-completion/--generate-bash-completion/g;s/\\\$PROG/${PN}/g" \
		"${DISTDIR}/urfave-cli-24197c9938b2b5fd633be9257157832b129d4b60-zsh_autocomplete" >"${PN}.zsh" || die "sed failed"
}

src_compile() {
	ego build "./cmd/${PN}"
}

src_test() {
	ego test -work
}

src_install() {
	dobin "${PN}"
	dodoc {README,CHANGELOG}.rst

	newbashcomp "${PN}.bash" "${PN}"
	newzshcomp "${PN}.zsh" "_${PN}"
}