From a7363f0c21c10081eae8f40eef7bf1be8c799575 Mon Sep 17 00:00:00 2001 From: Alex Last Date: Fri, 1 Mar 2024 15:52:20 +0000 Subject: [PATCH] feat: add nocgroup build tag for systems without cgroup (#3948) --- core/stat/internal/cpu_linux.go | 2 ++ core/stat/internal/cpu_other.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/stat/internal/cpu_linux.go b/core/stat/internal/cpu_linux.go index 245d0ad8..29ce9dec 100644 --- a/core/stat/internal/cpu_linux.go +++ b/core/stat/internal/cpu_linux.go @@ -1,3 +1,5 @@ +//go:build !nocgroup + package internal import ( diff --git a/core/stat/internal/cpu_other.go b/core/stat/internal/cpu_other.go index b9c27ff7..0634828c 100644 --- a/core/stat/internal/cpu_other.go +++ b/core/stat/internal/cpu_other.go @@ -1,4 +1,4 @@ -//go:build !linux +//go:build !linux || nocgroup package internal