tests now pass
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user