From 4a9ac9ed3ced48543a5d30248c24d2daac2899a6 Mon Sep 17 00:00:00 2001 From: Viktor Torstensson Date: Tue, 25 Nov 2025 01:38:22 +0100 Subject: [PATCH] multi: remove legacy `// +build` tag Lines With a upgrade to a never version of newer golang.org/x/tools/govet, a lint check to check for legacy buildtag lines starting with `// +build` has been added, as they're no longer needed. In order for the `make lint` check to pass with the newer version, we remove such buildtag lines. --- app.go | 1 - app_noui.go | 1 - deps.go | 1 - itest/litd_test_list_off_test.go | 1 - itest/litd_test_list_on_test.go | 1 - perms/mock.go | 1 - perms/mock_dev.go | 1 - tools/tools.go | 1 - 8 files changed, 8 deletions(-) diff --git a/app.go b/app.go index 846e20d2..f2f16da0 100644 --- a/app.go +++ b/app.go @@ -1,5 +1,4 @@ //go:build !litd_no_ui -// +build !litd_no_ui package terminal diff --git a/app_noui.go b/app_noui.go index fdbc704f..a7aa309f 100644 --- a/app_noui.go +++ b/app_noui.go @@ -1,5 +1,4 @@ //go:build litd_no_ui -// +build litd_no_ui package terminal diff --git a/deps.go b/deps.go index a3ceb4ac..78c6a99a 100644 --- a/deps.go +++ b/deps.go @@ -1,5 +1,4 @@ //go:build deps -// +build deps package terminal diff --git a/itest/litd_test_list_off_test.go b/itest/litd_test_list_off_test.go index 984a25ad..1897dbd4 100644 --- a/itest/litd_test_list_off_test.go +++ b/itest/litd_test_list_off_test.go @@ -1,5 +1,4 @@ //go:build !itest -// +build !itest package itest diff --git a/itest/litd_test_list_on_test.go b/itest/litd_test_list_on_test.go index 2b553cc2..fda3f165 100644 --- a/itest/litd_test_list_on_test.go +++ b/itest/litd_test_list_on_test.go @@ -1,5 +1,4 @@ //go:build itest -// +build itest package itest diff --git a/perms/mock.go b/perms/mock.go index d4fea281..43b82cb4 100644 --- a/perms/mock.go +++ b/perms/mock.go @@ -1,5 +1,4 @@ //go:build !dev -// +build !dev package perms diff --git a/perms/mock_dev.go b/perms/mock_dev.go index d6c05078..f609a5e2 100644 --- a/perms/mock_dev.go +++ b/perms/mock_dev.go @@ -1,5 +1,4 @@ //go:build dev -// +build dev package perms diff --git a/tools/tools.go b/tools/tools.go index 2883ee25..9daf862e 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,5 +1,4 @@ //go:build tools -// +build tools package terminal