Skip to content

Commit

Permalink
Add support for FreeBSD
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael DEMACON <[email protected]>
  • Loading branch information
quantumsheep committed May 9, 2023
1 parent 68b4ce9 commit bfd76ce
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 24 deletions.
4 changes: 2 additions & 2 deletions acceptance/testdata/launcher/exec.d/fd_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package main

Expand Down
4 changes: 2 additions & 2 deletions acceptance/variables_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package acceptance

Expand Down
4 changes: 2 additions & 2 deletions archive/tar_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package archive

Expand Down
16 changes: 16 additions & 0 deletions internal/extend/kaniko/dockerfile_applier_freebsd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//go:build linux

package kaniko

package kaniko

import (
v1 "github.com/google/go-containerregistry/pkg/v1"

"github.com/buildpacks/lifecycle/internal/extend"
"github.com/buildpacks/lifecycle/log"
)

func (a *DockerfileApplier) Apply(dockerfile extend.Dockerfile, toBaseImage v1.Image, withBuildOptions extend.Options, logger log.Logger) (v1.Image, error) {
return nil, nil
}
4 changes: 2 additions & 2 deletions internal/fsutil/os_detection_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux
// +build linux
//go:build linux || freebsd
// +build linux freebsd

package fsutil_test

Expand Down
4 changes: 2 additions & 2 deletions internal/path/defaults_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package path

Expand Down
4 changes: 2 additions & 2 deletions launch/exec_d_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package launch

Expand Down
4 changes: 2 additions & 2 deletions launch/launcher_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package launch

Expand Down
4 changes: 2 additions & 2 deletions launch/testdata/cmd/execd/fd_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package main

Expand Down
4 changes: 2 additions & 2 deletions launch/testhelpers/syscall_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package testhelpers

Expand Down
4 changes: 2 additions & 2 deletions layers/layers_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package layers_test

Expand Down
4 changes: 2 additions & 2 deletions priv/sock_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd

package priv

Expand Down
4 changes: 2 additions & 2 deletions testhelpers/vars_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux
// +build linux
//go:build linux || freebsd
// +build linux freebsd

package testhelpers

Expand Down

0 comments on commit bfd76ce

Please sign in to comment.