mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-10 02:31:59 +09:00
flake: build Go-parsing tools with the project's Go
goimports, gotools' goimports wrapper and golangci-lint-langserver were on the nixpkgs default Go, whose parser rejects generic methods.
This commit is contained in:
committed by
Kristoffer Dalby
parent
941fd9ff4e
commit
820dc3001b
@@ -82,6 +82,18 @@
|
||||
golines = prev.golines.override {
|
||||
buildGoModule = buildGo;
|
||||
};
|
||||
|
||||
# goimports and friends: they parse Go with the parser of the Go
|
||||
# they were built with, so an older one rejects new syntax.
|
||||
gotools = prev.gotools.override {
|
||||
buildGoModule = buildGo;
|
||||
# goimports is wrapped with this go on PATH for module lookups.
|
||||
go = pkgs.go_latest;
|
||||
};
|
||||
|
||||
golangci-lint-langserver = prev.golangci-lint-langserver.override {
|
||||
buildGoModule = buildGo;
|
||||
};
|
||||
};
|
||||
}
|
||||
// flake-utils.lib.eachDefaultSystem
|
||||
@@ -106,6 +118,8 @@
|
||||
gotests
|
||||
gofumpt
|
||||
gopls
|
||||
gotools
|
||||
|
||||
ksh
|
||||
ko
|
||||
yq-go
|
||||
|
||||
Reference in New Issue
Block a user