Skip to content

Commit

Permalink
Use .scala as workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Jul 8, 2021
1 parent 3f13421 commit 46830ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/build/src/main/scala/scala/build/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ object Build {
)

val project = Project(
workspace = inputs.workspace,
workspace = inputs.workspace / ".scala",
classesDir = classesDir0,
scalaCompiler = scalaCompiler,
scalaJsOptions = options.scalaJsOptions.config,
Expand Down
4 changes: 2 additions & 2 deletions modules/build/src/main/scala/scala/build/Project.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final case class Project(
baseBloopProject(
projectName,
workspace.toNIO,
(workspace / ".scala" / ".bloop" / projectName).toNIO,
(workspace / ".bloop" / projectName).toNIO,
classesDir.toNIO
)
.copy(
Expand All @@ -52,7 +52,7 @@ final case class Project(

def writeBloopFile(logger: Logger): Boolean = {
val bloopFileContent = writeAsJsonToArray(bloopFile)(BloopCodecs.codecFile)
val dest = workspace / ".scala" / ".bloop" / s"$projectName.json"
val dest = workspace / ".bloop" / s"$projectName.json"
val doWrite = !os.isFile(dest) || {
val currentContent = os.read.bytes(dest)
!Arrays.equals(currentContent, bloopFileContent)
Expand Down

0 comments on commit 46830ae

Please sign in to comment.