From 02f76b2e8ef559ecd8be6adc756ee033c67da082 Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Mon, 13 Sep 2021 16:56:59 -0700 Subject: [PATCH] [lbry] ci: fix linting (gofmt) --- btcec/genprecomps.go | 1 + btcec/gensecp256k1.go | 1 + claimtrie/normalization/normalizer_icu.go | 1 + claimtrie/normalization/normalizer_icu_test.go | 1 + limits/limits_unix.go | 1 + signalsigterm.go | 1 + 6 files changed, 6 insertions(+) diff --git a/btcec/genprecomps.go b/btcec/genprecomps.go index f09ab311..ea40ceac 100644 --- a/btcec/genprecomps.go +++ b/btcec/genprecomps.go @@ -5,6 +5,7 @@ // This file is ignored during the regular build due to the following build tag. // It is called by go generate and used to automatically generate pre-computed // tables used to accelerate operations. +//go:build ignore // +build ignore package main diff --git a/btcec/gensecp256k1.go b/btcec/gensecp256k1.go index 1928702d..e079f553 100644 --- a/btcec/gensecp256k1.go +++ b/btcec/gensecp256k1.go @@ -4,6 +4,7 @@ // This file is ignored during the regular build due to the following build tag. // This build tag is set during go generate. +//go:build gensecp256k1 // +build gensecp256k1 package btcec diff --git a/claimtrie/normalization/normalizer_icu.go b/claimtrie/normalization/normalizer_icu.go index 2f22f765..39aaa8ae 100644 --- a/claimtrie/normalization/normalizer_icu.go +++ b/claimtrie/normalization/normalizer_icu.go @@ -1,3 +1,4 @@ +//go:build use_icu_normalization // +build use_icu_normalization package normalization diff --git a/claimtrie/normalization/normalizer_icu_test.go b/claimtrie/normalization/normalizer_icu_test.go index ad402a89..510c9926 100644 --- a/claimtrie/normalization/normalizer_icu_test.go +++ b/claimtrie/normalization/normalizer_icu_test.go @@ -1,3 +1,4 @@ +//go:build use_icu_normalization // +build use_icu_normalization package normalization diff --git a/limits/limits_unix.go b/limits/limits_unix.go index 7ebf8667..7972b05e 100644 --- a/limits/limits_unix.go +++ b/limits/limits_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. +//go:build !windows && !plan9 // +build !windows,!plan9 package limits diff --git a/signalsigterm.go b/signalsigterm.go index 83165501..63bdb9c0 100644 --- a/signalsigterm.go +++ b/signalsigterm.go @@ -2,6 +2,7 @@ // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. +//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris package main