File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,14 @@ object `docs-tests` extends SbtModule with ScalaCliScalafixModule with HasTests
112
112
Deps .osLib,
113
113
Deps .pprint
114
114
)
115
-
115
+ def tmpDirBase = T .persistent {
116
+ PathRef (T .dest / " working-dir" )
117
+ }
116
118
def extraEnv = T {
117
- Seq (" SCLICHECK_SCALA_CLI" -> cli.standaloneLauncher().path.toString)
119
+ Seq (
120
+ " SCLICHECK_SCALA_CLI" -> cli.standaloneLauncher().path.toString,
121
+ " SCALA_CLI_CONFIG" -> (tmpDirBase().path / " config" / " config.json" ).toString
122
+ )
118
123
}
119
124
def forkEnv = super .forkEnv() ++ extraEnv()
120
125
@@ -869,7 +874,8 @@ trait CliIntegration extends SbtModule with ScalaCliPublishModule with HasTests
869
874
)
870
875
def forkEnv = super .forkEnv() ++ Seq (
871
876
" SCALA_CLI_TMP" -> tmpDirBase().path.toString,
872
- " SCALA_CLI_PRINT_STACK_TRACES" -> " 1"
877
+ " SCALA_CLI_PRINT_STACK_TRACES" -> " 1" ,
878
+ " SCALA_CLI_CONFIG" -> (tmpDirBase().path / " config" / " config.json" ).toString
873
879
)
874
880
private def updateRef (name : String , ref : PathRef ): PathRef = {
875
881
val rawPath = ref.path.toString.replace(
You can’t perform that action at this time.
0 commit comments