Skip to content

Commit

Permalink
Merge pull request #35 from nickajacks1/master
Browse files Browse the repository at this point in the history
feat: resolve environment variables in config
  • Loading branch information
idc101 committed Apr 23, 2023
2 parents 9d8f4ea + eaca5a7 commit f89e5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/net/cardnell/mkver/AppConfig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ object AppConfig {

def tryLoadAppConfig(file: String): Task[AppConfig] = {
for {
configSource <- TypesafeConfigSource.fromTypesafeConfig(ConfigFactory.parseFile(new java.io.File(file)))
configSource <- TypesafeConfigSource.fromTypesafeConfig(ConfigFactory.parseFile(new java.io.File(file)).resolve())
.fold(l => Task.fail(MkVerException(l.getMessage())), r => Task.succeed(r))
appConfig <- read(AppConfig.appConfigDesc from configSource)
.fold(l => Task.fail(MkVerException("Unable to parse config: " + l.prettyPrint())), r => Task.succeed(r))
Expand Down

0 comments on commit f89e5ea

Please sign in to comment.