From b848178410c351d28b8df6d3125e8cc3fd975892 Mon Sep 17 00:00:00 2001 From: tuftedocelot Date: Fri, 20 Dec 2024 15:38:05 +0000 Subject: [PATCH 1/2] internal/backend: support OpenBSD for getting file status last changed info --- internal/backend/time_openbsd.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 internal/backend/time_openbsd.go diff --git a/internal/backend/time_openbsd.go b/internal/backend/time_openbsd.go new file mode 100644 index 0000000000..15076c2d7d --- /dev/null +++ b/internal/backend/time_openbsd.go @@ -0,0 +1,15 @@ +//go:build openbsd + +package backend + +import ( + "os" + "syscall" +) + +func createTimeFromFileInfo(input os.FileInfo) syscall.Timespec { + if statT, ok := input.Sys().(*syscall.Stat_t); ok { + return statT.Ctim + } + return syscall.Timespec{} +} From e487ac56e1ce38faf2fa33a1a0ca5cbab2d43395 Mon Sep 17 00:00:00 2001 From: tuftedocelot Date: Fri, 3 Jan 2025 21:49:25 +0000 Subject: [PATCH 2/2] Add OpenBSD to list of cross-compile OS list --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e5d155bf4..1fecf0b5fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,7 @@ jobs: - darwin - freebsd - linux + - openbsd - windows goarch: - amd64