From 162375b2297dc0f43528d5ee2eab259b2ce1333e Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Tue, 3 Sep 2024 19:19:45 +0200 Subject: [PATCH] feat: add windows arm support (#179) ## What does this PR do? rename 386/amd64 specific files to compile on windows and use build tags to check the architecture ## Why is it important? add windows/arm and windows/arm64 support ## Checklist - [ ] My code follows the style guidelines of this project - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added an entry in `CHANGELOG.md` ## Author's Checklist - [ ] ## Related issues - --- .../{disk_performance_386.go => disk_performance32_windows.go} | 3 +-- ...disk_performance_amd64.go => disk_performance64_windows.go} | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) rename metric/system/diskio/{disk_performance_386.go => disk_performance32_windows.go} (98%) rename metric/system/diskio/{disk_performance_amd64.go => disk_performance64_windows.go} (97%) diff --git a/metric/system/diskio/disk_performance_386.go b/metric/system/diskio/disk_performance32_windows.go similarity index 98% rename from metric/system/diskio/disk_performance_386.go rename to metric/system/diskio/disk_performance32_windows.go index e05dc82500..8b0a824549 100644 --- a/metric/system/diskio/disk_performance_386.go +++ b/metric/system/diskio/disk_performance32_windows.go @@ -15,8 +15,7 @@ // specific language governing permissions and limitations // under the License. -//go:build windows -// +build windows +//go:build windows && (386 || arm) package diskio diff --git a/metric/system/diskio/disk_performance_amd64.go b/metric/system/diskio/disk_performance64_windows.go similarity index 97% rename from metric/system/diskio/disk_performance_amd64.go rename to metric/system/diskio/disk_performance64_windows.go index d925d99d19..fd78d07cf6 100644 --- a/metric/system/diskio/disk_performance_amd64.go +++ b/metric/system/diskio/disk_performance64_windows.go @@ -15,8 +15,7 @@ // specific language governing permissions and limitations // under the License. -//go:build windows -// +build windows +//go:build windows && (arm64 || amd64) package diskio