ggolang install ok

This commit is contained in:
2025-01-01 15:25:58 +01:00
parent 914e1f5073
commit b927fc5b5d
6 changed files with 36 additions and 15 deletions

View File

@@ -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.')