You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would make sense to check if the first character of envFileName is a /, and if so, don't prepend the base directory.
The use case for me would be to inject an envfile in GitLab CI. It allows you to define environment specific files, and provides an absolute path to these files in an environment variable. It would be convenient to be able to plug that into sbt cli like so: sbt "set ThisBuild / envFileName := \"$SBT_DOT_ENV\"" test
Would you accept a PR for this?
The text was updated successfully, but these errors were encountered:
Sbt-dotenv currently always prepends the
envFileName
with the base directory.sbt-dotenv/src/main/scala/au/com/onegeek/sbtdotenv/SbtDotenv.scala
Line 89 in ab634f7
I think it would make sense to check if the first character of
envFileName
is a/
, and if so, don't prepend the base directory.The use case for me would be to inject an envfile in GitLab CI. It allows you to define environment specific files, and provides an absolute path to these files in an environment variable. It would be convenient to be able to plug that into sbt cli like so:
sbt "set ThisBuild / envFileName := \"$SBT_DOT_ENV\"" test
Would you accept a PR for this?
The text was updated successfully, but these errors were encountered: