Исправлена проблема с перемещением готового пакета из временной дирректории сборки (в случае зависимости)
All checks were successful
Pre-commit / pre-commit (push) Successful in 5m12s
Create Release / changelog (push) Successful in 3m6s

This commit is contained in:
2025-09-21 17:50:31 +03:00
parent 6773d51caf
commit cf804ec66b
3 changed files with 32 additions and 7 deletions

View File

@@ -197,6 +197,13 @@ func BuildCmd() *cli.Command {
for _, pkg := range res {
name := filepath.Base(pkg.Path)
// Проверяем, существует ли файл перед перемещением
if _, err := os.Stat(pkg.Path); os.IsNotExist(err) {
slog.Info("Package file already moved or removed, skipping", "path", pkg.Path)
continue
}
err = osutils.Move(pkg.Path, filepath.Join(wd, name))
if err != nil {
return cliutils.FormatCliExit(gotext.Get("Error moving the package"), err)