Skip to content

Commit a33d0b2

Browse files
authored
Merge pull request #3763 from slonopotamus/darwin
Darwin build
2 parents 4f54d76 + 660c9a8 commit a33d0b2

25 files changed

+183
-143
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
goos: linux
2828
- os: ubuntu-24.04
2929
goos: freebsd
30+
- os: ubuntu-24.04
31+
goos: darwin
3032
# FIXME: this is currently failing in a non-sensical way, so, running on linux instead...
3133
# - os: windows-2022
3234
- os: ubuntu-24.04

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
goos: windows
7171
- os: ubuntu-24.04
7272
goos: linux
73+
- os: macos-15
74+
goos: darwin
7375
steps:
7476
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7577
with:

cmd/nerdctl/completion/completion_freebsd.go renamed to cmd/nerdctl/completion/completion_unix_nolinux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build unix && !linux
2+
13
/*
24
Copyright The containerd Authors.
35

cmd/nerdctl/container/container_cp_freebsd.go renamed to cmd/nerdctl/container/container_cp_nolinux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !linux
2+
13
/*
24
Copyright The containerd Authors.
35

cmd/nerdctl/container/container_cp_windows.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

cmd/nerdctl/container/container_run_windows.go renamed to cmd/nerdctl/container/container_run_nolinux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !linux
2+
13
/*
24
Copyright The containerd Authors.
35

cmd/nerdctl/main_freebsd.go renamed to cmd/nerdctl/main_nolinux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !linux
2+
13
/*
24
Copyright The containerd Authors.
35

pkg/buildkitutil/buildkitutil_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ func TestBuildKitFile(t *testing.T) {
3535
var tmp = t.TempDir()
3636
var wd, err = os.Getwd()
3737
assert.NilError(t, err)
38+
tmp, err = filepath.EvalSymlinks(tmp)
39+
assert.NilError(t, err)
3840
err = os.Chdir(tmp)
3941
assert.NilError(t, err)
4042
defer os.Chdir(wd)

pkg/buildkitutil/buildkitutil_freebsd.go renamed to pkg/buildkitutil/buildkitutil_unix_nolinux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build unix && !linux
2+
13
/*
24
Copyright The containerd Authors.
35

pkg/cmd/container/exec_freebsd.go renamed to pkg/cmd/container/exec_nolinux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !linux
2+
13
/*
24
Copyright The containerd Authors.
35

0 commit comments

Comments
 (0)