ggolang install ok
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
module docker
|
||||
|
||||
import freeflowuniverse.herolib.osal { cputype, exec, platform }
|
||||
import freeflowuniverse.herolib.osal {exec}
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
import freeflowuniverse.herolib.virt.utils
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import freeflowuniverse.herolib.core
|
||||
|
||||
// import freeflowuniverse.herolib.installers.swarm
|
||||
@@ -38,9 +37,9 @@ pub fn (mut e DockerEngine) init() ! {
|
||||
exec(cmd: 'mkdir -p ${e.buildpath}', stdout: false)!
|
||||
}
|
||||
if e.platform == [] {
|
||||
if core.platform()! == .ubuntu && cputype()! == .intel {
|
||||
if core.platform()! == .ubuntu && core.cputype()! == .intel {
|
||||
e.platform = [.linux_amd64]
|
||||
} else if core.platform()! == .osx && cputype()! == .arm {
|
||||
} else if core.platform()! == .osx && core.cputype()! == .arm {
|
||||
e.platform = [.linux_arm64]
|
||||
} else {
|
||||
return error('only implemented ubuntu on amd and osx on arm for now for docker engine.')
|
||||
|
||||
Reference in New Issue
Block a user