Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydroconf.discover_sources() seems not to respect HydroSettings.settings_file #4

Open
hongquan opened this issue Sep 13, 2023 · 0 comments

Comments

@hongquan
Copy link

When looking into HydroSettings, I thought that the settings_file field is to guide Hydroconf to look into right source file. But when reading Hydroconf.discover_sources() implementation, it seems not to. It only takes HydroSettings.env into account.

pub fn discover_sources(&mut self) {
    self.sources = self
        .root_path()
        .map(|p| {
            FileSources::from_root(p, self.hydro_settings.env.as_str())
        })
        .unwrap_or_else(|| FileSources::default());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant