azist / azos

A to Z Sky Operating System / Microservice Chassis Framework
MIT License
213 stars 29 forks source link

Config:Linux include file paths is not found #779

Closed itadapter closed 1 year ago

itadapter commented 2 years ago

Can we use File.ReadAllText(0 instead of using local fs? maybe add a prop for that, or use direct disk access in case of FS not being defined.

 "TypeName": "Azos.Conf.ConfigException",
  "Message": "Config error processing include pragma 'CommonApplicationLogic': [Azos.Conf.ConfigException] Config error processing include pragma '\/[0]': [Azos.Conf.ConfigException] Referenced file '\/home\/sky\/g8-main.set\/all.cmp\/environment.xml' does not exist",
itadapter commented 2 years ago

ConfigNode.cs::1650

private (ConfigSectionNode node, bool isOverride) getIncludedNodeRoot(ConfigSectionNode pragma)
{
 1698:  var ndFs = pragma[Configuration.CONFIG_INCLUDE_PRAGMA_FS_SECTION];
    if (!ndFs.Exists)
    {
       //read directly from file using Configuration.LoadFromFile(fileName);
    }
}