From 664c709744809f39121d90483204f2657fb1c554 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Tue, 1 Sep 2020 19:34:48 +0200 Subject: [PATCH] Alire.Config: s/config/config.toml/ (#504) After fixing the manifest file name to `alire.toml`, there is no possible confusion with other toml files in the same directory, so we can explicitly give .toml extension to config files. --- src/alire/alire-config.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alire/alire-config.adb b/src/alire/alire-config.adb index 69e1cb15..91381add 100644 --- a/src/alire/alire-config.adb +++ b/src/alire/alire-config.adb @@ -277,7 +277,7 @@ package body Alire.Config is begin case Lvl is when Global => - return Alire.Config.Path / "config"; + return Alire.Config.Path / "config.toml"; when Local => declare Candidate : constant String := @@ -286,7 +286,7 @@ package body Alire.Config is if Candidate /= "" then -- This file cannot have a .toml extension or the root -- detection will not work. - return Candidate / "alire" / "config"; + return Candidate / "alire" / "config.toml"; else Raise_Checked_Error ("Can only be used in an Alire directory"); -- 2.39.5