From ae8e20b985d63613e89b9124a1eb2214f289d433 Mon Sep 17 00:00:00 2001 From: Juan Bustamante Date: Wed, 22 May 2024 13:06:30 -0500 Subject: [PATCH] fixing windows acceptance test Signed-off-by: Juan Bustamante --- acceptance/acceptance_test.go | 4 ++-- acceptance/testdata/pack_fixtures/builder_multi_platform.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acceptance/acceptance_test.go b/acceptance/acceptance_test.go index d166b12ccd..5e7c1766ff 100644 --- a/acceptance/acceptance_test.go +++ b/acceptance/acceptance_test.go @@ -3407,7 +3407,7 @@ include = [ "*.jar", "media/mountain.jpg", "/media/person.png", ] it("publishes builder image to the daemon for the given target", func() { platform := "linux/amd64" - if runtime.GOOS == "windows" { + if imageManager.HostOS() == "windows" { platform = "windows/amd64" } @@ -3459,7 +3459,7 @@ include = [ "*.jar", "media/mountain.jpg", "/media/person.png", ] it("publishes builder image to the daemon for the given target", func() { platform := "linux/amd64" - if runtime.GOOS == "windows" { + if imageManager.HostOS() == "windows" { platform = "windows/amd64" } diff --git a/acceptance/testdata/pack_fixtures/builder_multi_platform.toml b/acceptance/testdata/pack_fixtures/builder_multi_platform.toml index d67d820515..cc95496e30 100644 --- a/acceptance/testdata/pack_fixtures/builder_multi_platform.toml +++ b/acceptance/testdata/pack_fixtures/builder_multi_platform.toml @@ -15,7 +15,7 @@ arch = "amd64" [[targets]] os = "windows" -arch = "arm64" +arch = "amd64" [build] image = "{{ .BuildImage }}"