dev-go/staticcheck - 2026.1 (gentoo-zh)

Search

Install

Install this version:

emerge -a =dev-go/staticcheck-2026.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-go/staticcheck-2026.1

Or alternatively:

emerge --autounmask-write -a =dev-go/staticcheck-2026.1

Package Information

Description:
Go static analysis, detecting bugs, performance issues, and much more
Homepage:
https://staticcheck.dev https://github.com/dominikh/go-tools
License:
BSD MIT

Ebuild Details

Version EAPI Keywords Slot
2026.1 8 -* ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Go static analysis, detecting bugs, performance issues, and much more"
HOMEPAGE="https://staticcheck.dev https://github.com/dominikh/go-tools"
SRC_URI="
	https://github.com/dominikh/go-tools/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/gentoo-zh-drafts/go-tools/releases/download/${PV}/go-tools-${PV}-vendor.tar.xz
		-> ${P}-vendor.golang-dist-mirror-action.tar.xz
"
S="${WORKDIR}/go-tools-${PV}"

LICENSE="BSD MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"

# go.mod go directive is 1.25.0, above the go-module eclass floor
BDEPEND=">=dev-lang/go-1.25.0"

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

src_test() {
	ego test ./...
}

src_install() {
	dobin "bin/${PN}"
}

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.25.0

Manifest for 2026.1

Type File Size Source URLs
DIST staticcheck-2026.1-vendor.golang-dist-mirror-action.tar.xz 396336 bytes https://github.com/gentoo-zh-drafts/go-tools/releases/download/2026.1/go-tools-2026.1-vendor.tar.xz
DIST staticcheck-2026.1.tar.gz 766948 bytes https://github.com/dominikh/go-tools/archive/refs/tags/2026.1.tar.gz