-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5271 from slonopotamus/cleanup-linuxisms
Cleanup Linux-isms in code
- Loading branch information
Showing
11 changed files
with
23 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
//go:build !windows && !freebsd | ||
// +build !windows,!freebsd | ||
|
||
package snapshot | ||
|
||
import ( | ||
|
9 changes: 5 additions & 4 deletions
9
snapshot/diffapply_windows.go → snapshot/diffapply_unsupported.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
//go:build windows | ||
// +build windows | ||
//go:build !linux | ||
// +build !linux | ||
|
||
package snapshot | ||
|
||
import ( | ||
"context" | ||
"runtime" | ||
|
||
"github.com/containerd/containerd/leases" | ||
"github.com/containerd/containerd/snapshots" | ||
"github.com/pkg/errors" | ||
) | ||
|
||
func (sn *mergeSnapshotter) diffApply(_ context.Context, _ Mountable, _ ...Diff) (_ snapshots.Usage, rerr error) { | ||
return snapshots.Usage{}, errors.New("diffApply not yet supported on windows") | ||
return snapshots.Usage{}, errors.New("diffApply not yet supported on " + runtime.GOOS) | ||
} | ||
|
||
func needsUserXAttr(_ context.Context, _ Snapshotter, _ leases.Manager) (bool, error) { | ||
return false, errors.New("needs userxattr not supported on windows") | ||
return false, errors.New("needs userxattr not supported on " + runtime.GOOS) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
//go:build !windows && !freebsd | ||
// +build !windows,!freebsd | ||
|
||
package git | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package appdefaults | ||
|
||
const ( | ||
Address = "unix:///run/buildkit/buildkitd.sock" | ||
traceSocketPath = "/run/buildkit/otel-grpc.sock" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//go:build unix && !linux | ||
|
||
package appdefaults | ||
|
||
const ( | ||
Address = "unix:///var/run/buildkit/buildkitd.sock" | ||
traceSocketPath = "/var/run/buildkit/otel-grpc.sock" | ||
) |