MCPcopy
hub / github.com/yuk7/wsldl / Install

Function Install

src/install/install.go:81–83  ·  view source on GitHub ↗

Install installs distribution with default rootfs file names

(ctx context.Context, wsl wsllib.WslLib, reg wsllib.WslReg, name string, rootPath string, sha256Sum string, showProgress bool)

Source from the content-addressed store, hash-verified

79
80// Install installs distribution with default rootfs file names
81func Install(ctx context.Context, wsl wsllib.WslLib, reg wsllib.WslReg, name string, rootPath string, sha256Sum string, showProgress bool) error {
82 return installWithDeps(ctx, wsl, reg, name, rootPath, sha256Sum, showProgress, defaultInstallDeps())
83}
84
85func installWithDeps(ctx context.Context, wsl wsllib.WslLib, reg wsllib.WslReg, name string, rootPath string, sha256Sum string, showProgress bool, deps installDeps) error {
86 ctx = normalizeContext(ctx)

Calls 2

installWithDepsFunction · 0.85
defaultInstallDepsFunction · 0.85