refactor: manually modernize Go (#349)

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2026-05-04 13:20:48 +10:00
committed by GitHub
parent 4503b17046
commit d23f1bdc00
5 changed files with 7 additions and 10 deletions
+1 -3
View File
@@ -683,9 +683,7 @@ func (s *Server) CreateServiceContainer(
// Apply the pre-deploy hook overrides.
config.Cmd = spec.PreDeploy.Command
for k, v := range spec.PreDeploy.Env {
envVars[k] = v
}
maps.Copy(envVars, spec.PreDeploy.Env)
envVars["UNCLOUD_HOOK_PRE_DEPLOY"] = "true"
config.Env = envVars.ToSlice()