mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
pkg/reexec: make platform-agnostic (again)
The reexec package originally was platform-agnostic, but gained some Linux-specific handling in1cb17f03d0. When Windows support was implemented in Docker, the pkg/reexec package was adjusted accordingly in64715c4f33, which now made the package with with either Linux or Windows, with various other platforms (freebsd, solaris, darwin) being added back in separate changes. Based on the history above, this package should be platform-agnostic, except for Linux-specific changes introduced in1cb17f03d0and5aee8807a6. This patch: - removes the stub-implementation to make it functional on other platforms. - renames the files for consistency Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
//go:build !linux && !windows && !freebsd && !darwin
|
||||
|
||||
package reexec
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
// Command is unsupported on operating systems apart from Linux, Windows, and Darwin.
|
||||
func Command(args ...string) *exec.Cmd {
|
||||
return nil
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build freebsd || darwin || windows
|
||||
//go:build !linux
|
||||
|
||||
package reexec
|
||||
|
||||
Reference in New Issue
Block a user