fix(agent): minimal env and explicit project dir for compose, resolve every config file's symlinks (#7)

This commit is contained in:
2026-10-12 19:13:25 +02:00
parent 8b2c10cc05
commit 93ba6915b9
8 changed files with 86 additions and 25 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ package updater
import (
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"log/slog"
"os"
@@ -64,7 +63,7 @@ func LoadRegistryAuth(dockerConfigDir string, log *slog.Logger) (*RegistryAuth,
}
user, pass, ok := strings.Cut(string(dec), ":")
if !ok {
return nil, errors.New(path + ": auth for " + key + " is not user:password")
return nil, fmt.Errorf("%s: auth for %s is not user:password", path, key)
}
ac.Username, ac.Password = user, pass
default: