tests now pass

This commit is contained in:
2025-10-14 21:26:58 +03:00
parent 5471f3b138
commit 7c4c4fd620
3 changed files with 14 additions and 11 deletions

View File

@@ -74,8 +74,13 @@ func (m *Manager) Deploy(ctx context.Context, username, project string, r io.Rea
return "", fmt.Errorf("failed to create deploy parent directory: %w", err)
}
relPath, err := filepath.Rel(deployParentDir, releasePath)
if err != nil {
return "", fmt.Errorf("failed to calculate relative path: %w", err)
}
tmpLink := deployPath + ".tmp." + releaseID
if err := os.Symlink(releasePath, tmpLink); err != nil {
if err := os.Symlink(relPath, tmpLink); err != nil {
return "", fmt.Errorf("failed to create temporary symlink: %w", err)
}