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
This results in the project root target/pacts folder being used by default, even for sub-projects. This means by default, pact commands will fail on sub-projects. I would suggest instead, we use a default of (target.value / "pacts").getPath as provided by SBT, for example:
This way the default target path will work on sub-projects by default. This means we should probably also update the logic so that other places in the code will expect the outputPath to always be defined and used as a fallback to Properties.envOrElse("pact.rootDir") so that defining the system override will still take precedence.
Currently
ScalaPactEnvsetsoutputPathtoNoneby default:scala-pact/sbt-scalapact/src/main/scala/com/itv/scalapact/plugin/ScalaPactPlugin.scala
Line 155 in da2173a
In various places, a default value of
"target/pacts"is then assigned. For example:scala-pact/scalapact-shared/src/main/scala/com/itv/scalapact/shared/ScalaPactSettings.scala
Line 25 in 7e1ef12
This results in the project root
target/pactsfolder being used by default, even for sub-projects. This means by default, pact commands will fail on sub-projects. I would suggest instead, we use a default of(target.value / "pacts").getPathas provided by SBT, for example:This way the default target path will work on sub-projects by default. This means we should probably also update the logic so that other places in the code will expect the
outputPathto always be defined and used as a fallback toProperties.envOrElse("pact.rootDir")so that defining the system override will still take precedence.