From c39b4b548388659609cbab2e70a64855b7c5c818 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 23 Jan 2024 16:47:15 -0500 Subject: [PATCH] add ConfigureTimeZone for non linux platforms [NO NEW TESTS NEEDED] Signed-off-by: Daniel J Walsh --- pkg/timezone/{timezone_linux.go => timezone.go} | 2 +- pkg/timezone/timezone_unsupported.go | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) rename pkg/timezone/{timezone_linux.go => timezone.go} (99%) create mode 100644 pkg/timezone/timezone_unsupported.go diff --git a/pkg/timezone/timezone_linux.go b/pkg/timezone/timezone.go similarity index 99% rename from pkg/timezone/timezone_linux.go rename to pkg/timezone/timezone.go index 0039363079..0b791cce7b 100644 --- a/pkg/timezone/timezone_linux.go +++ b/pkg/timezone/timezone.go @@ -1,4 +1,4 @@ -//go:build linux +//go:build !windows && !darwin package timezone diff --git a/pkg/timezone/timezone_unsupported.go b/pkg/timezone/timezone_unsupported.go new file mode 100644 index 0000000000..224d1be85a --- /dev/null +++ b/pkg/timezone/timezone_unsupported.go @@ -0,0 +1,7 @@ +//go:build windows || darwin + +package timezone + +func ConfigureContainerTimeZone(timezone, containerRunDir, mountPoint, etcPath, containerID string) (string, error) { + return "", nil +}