Skip to content

Commit 76c81a1

Browse files
committed
Add support for FreeBSD
1 parent 68b4ce9 commit 76c81a1

File tree

13 files changed

+40
-24
lines changed

13 files changed

+40
-24
lines changed

acceptance/testdata/launcher/exec.d/fd_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux || darwin
2-
// +build linux darwin
1+
//go:build linux || darwin || freebsd
2+
// +build linux darwin freebsd
33

44
package main
55

acceptance/variables_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux || darwin
2-
// +build linux darwin
1+
//go:build linux || darwin || freebsd
2+
// +build linux darwin freebsd
33

44
package acceptance
55

archive/tar_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux || darwin
2-
// +build linux darwin
1+
//go:build linux || darwin || freebsd
2+
// +build linux darwin freebsd
33

44
package archive
55

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//go:build linux
2+
3+
package kaniko
4+
5+
package kaniko
6+
7+
import (
8+
v1 "github.com/google/go-containerregistry/pkg/v1"
9+
10+
"github.com/buildpacks/lifecycle/internal/extend"
11+
"github.com/buildpacks/lifecycle/log"
12+
)
13+
14+
func (a *DockerfileApplier) Apply(dockerfile extend.Dockerfile, toBaseImage v1.Image, withBuildOptions extend.Options, logger log.Logger) (v1.Image, error) {
15+
return nil, nil
16+
}

internal/fsutil/os_detection_linux_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux
2-
// +build linux
1+
//go:build linux || freebsd
2+
// +build linux freebsd
33

44
package fsutil_test
55

internal/path/defaults_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux || darwin
2-
// +build linux darwin
1+
//go:build linux || darwin || freebsd
2+
// +build linux darwin freebsd
33

44
package path
55

launch/exec_d_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux || darwin
2-
// +build linux darwin
1+
//go:build linux || darwin || freebsd
2+
// +build linux darwin freebsd
33

44
package launch
55

launch/launcher_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux || darwin
2-
// +build linux darwin
1+
//go:build linux || darwin || freebsd
2+
// +build linux darwin freebsd
33

44
package launch
55

launch/testdata/cmd/execd/fd_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux || darwin
2-
// +build linux darwin
1+
//go:build linux || darwin || freebsd
2+
// +build linux darwin freebsd
33

44
package main
55

launch/testhelpers/syscall_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux || darwin
2-
// +build linux darwin
1+
//go:build linux || darwin || freebsd
2+
// +build linux darwin freebsd
33

44
package testhelpers
55

0 commit comments

Comments
 (0)