Skip to content

Commit

Permalink
Add newline before [[depends-on]] and [[pins]] (#1108)
Browse files Browse the repository at this point in the history
When these are automatically added by `alr with`/`alr pin`.

This is more in line with what we see in manually edited manifests.
  • Loading branch information
mosteo authored Jul 25, 2022
1 parent e9f0ee5 commit 0677dfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/alire/alire-manifest.adb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package body Alire.Manifest is
(File => Name,
Lines =>
AAA.Strings.Empty_Vector
.Append ("")
.Append ("[[" & TOML_Keys.Depends_On & "]]")
.Append (Dep.Manifest_Image),
Backup => False);
Expand All @@ -41,6 +42,7 @@ package body Alire.Manifest is
(File => File,
Lines =>
AAA.Strings.Empty_Vector
.Append ("")
.Append ("[[" & TOML_Keys.Pins & "]]")
.Append (Pin.To_Manifest_Line (Crate)),
Backup => False);
Expand Down

0 comments on commit 0677dfa

Please sign in to comment.