Skip to content

Commit

Permalink
Add workaround for git worktree (#483)
Browse files Browse the repository at this point in the history
Take 2.

Turns out it is actually quite easy to detect if the current workspace
is a linked workspace because `.git` is a file instead of a directory.
  • Loading branch information
steinybot authored Jun 17, 2024
1 parent 1605b9c commit a68a424
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.github.sbt.git.SbtGit.GitKeys.useConsoleForROGit

val scala3Version = "3.4.2"
val scala212Version = "2.12.19"
val scala213Version = "2.13.14"
Expand All @@ -21,6 +23,8 @@ sonatypeRepository := "https://s01.oss.sonatype.org/service/loca
sonatypeProfileName := "io.getkyo"
publish / skip := true

ThisBuild / useConsoleForROGit := (baseDirectory.value / ".git").isFile

lazy val `kyo-settings` = Seq(
fork := true,
scalaVersion := scala3Version,
Expand Down

0 comments on commit a68a424

Please sign in to comment.