From 0853e52f4e735c4ad933cce429f4c83da649aca6 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Tue, 6 Feb 2024 13:53:37 +0100 Subject: [PATCH] util/runtime: Ignore nolintlint failure on OSX (#13546) util/runtime: Make nolintlint ignore unconvert linter directive --------- Signed-off-by: Arve Knudsen --- util/runtime/statfs_default.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/runtime/statfs_default.go b/util/runtime/statfs_default.go index 8d283c1e44..78cfb1fe41 100644 --- a/util/runtime/statfs_default.go +++ b/util/runtime/statfs_default.go @@ -71,7 +71,8 @@ func Statfs(path string) string { var fs syscall.Statfs_t err := syscall.Statfs(path, &fs) - //nolint:unconvert // This ensure Type format on all Platforms + // nolintlint might cry out depending on the architecture (e.g. ARM64), so ignore it. + //nolint:unconvert,nolintlint // This ensures Type format on all Platforms. localType := int64(fs.Type) if err != nil { return strconv.FormatInt(localType, 16)