2021-03-02 05:40:34 +00:00
|
|
|
{ lib, buildGoModule, fetchgit }:
|
2016-06-04 12:35:09 +00:00
|
|
|
|
2021-03-02 05:40:34 +00:00
|
|
|
buildGoModule rec {
|
2022-04-10 01:14:44 +00:00
|
|
|
pname = "golint";
|
|
|
|
version = "unstable-2020-12-08";
|
2020-07-31 04:07:43 +00:00
|
|
|
|
2018-11-22 04:34:26 +00:00
|
|
|
# we must allow references to the original `go` package, as golint uses
|
|
|
|
# compiler go/build package to load the packages it's linting.
|
|
|
|
allowGoReference = true;
|
|
|
|
|
2016-06-04 12:35:09 +00:00
|
|
|
src = fetchgit {
|
2018-11-22 04:34:26 +00:00
|
|
|
url = "https://go.googlesource.com/lint";
|
2022-04-10 01:14:44 +00:00
|
|
|
rev = "83fdc39ff7b56453e3793356bcff3070b9b96445";
|
2021-03-02 05:40:34 +00:00
|
|
|
sha256 = "sha256-g4Z9PREOxGoN7n/XhutawsITBznJlbz6StXeDYvOQ1c=";
|
2016-06-04 12:35:09 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-dPadFoymYu2Uw2AXZfbaBfxsN8IWMuK1TrcknHco3Bo=";
|
2018-11-22 04:34:26 +00:00
|
|
|
|
2022-04-10 01:14:44 +00:00
|
|
|
# tests no longer work:
|
|
|
|
# found packages pkg (4.go) and foo (blank-import-lib.go) in /build/lint-6edffad/testdata
|
|
|
|
# testdata/errorf-custom.go:9:2: cannot find package "." in:
|
|
|
|
# /build/lint-6edffad/vendor/github.com/pkg/errors
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://golang.org";
|
2018-11-22 04:34:26 +00:00
|
|
|
description = "Linter for Go source code";
|
|
|
|
license = licenses.bsd3;
|
2021-03-02 05:40:34 +00:00
|
|
|
maintainers = with maintainers; [ jhillyerd tomberek ];
|
2018-11-22 04:34:26 +00:00
|
|
|
};
|
2016-06-04 12:35:09 +00:00
|
|
|
}
|