refactor(cmd/joj3)!: conf #51

Merged
张泊明518370910136 merged 11 commits from conf into master 2024-10-12 13:21:59 +08:00
Showing only changes of commit 459d1bf53d - Show all commits

View File

@ -160,6 +160,7 @@ func parseConfFile(path string) (conf Conf, err error) {
return return
} }
// TODO: remove the following backward compatibility codes // TODO: remove the following backward compatibility codes
if len(conf.Stage.Stages) == 0 {
conf.Stage.SandboxExecServer = conf.SandboxExecServer conf.Stage.SandboxExecServer = conf.SandboxExecServer
conf.Stage.SandboxToken = conf.SandboxToken conf.Stage.SandboxToken = conf.SandboxToken
conf.Stage.OutputPath = conf.OutputPath conf.Stage.OutputPath = conf.OutputPath
@ -178,6 +179,7 @@ func parseConfFile(path string) (conf Conf, err error) {
}, },
} }
} }
}
return return
} }