Skip to content

Commit

Permalink
WIP: fix failure syncing softlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo committed Aug 30, 2024
1 parent d296745 commit 8b99353
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion deps/den
18 changes: 8 additions & 10 deletions src/alire/alire-builds.adb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ with Alire.Paths.Vault;
with Alire.Roots;
with Alire.Settings.Builtins;

with GNATCOLL.VFS;
with Den.Filesystem;

package body Alire.Builds is

Expand Down Expand Up @@ -56,16 +56,14 @@ package body Alire.Builds is
Simple_Logging.Activity
("Syncing " & Release.Milestone.TTY_Image)
with Unreferenced;
Success : Boolean := False;
use GNATCOLL.VFS;
begin
GNATCOLL.VFS.Copy
(Create (+Src),
+Dst,
Success);

Assert (Success,
"Could not sync build dir from " & Src & " to " & Dst);
Den.Filesystem.Create_Directory (Dst);
Den.Filesystem.Copy (Src, Dst);
exception
when E : others =>
Log_Exception (E);
Raise_Checked_Error
("Could not sync build dir from " & Src & " to " & Dst);
end;

-- At this point we can generate the final crate configuration
Expand Down

0 comments on commit 8b99353

Please sign in to comment.