ITV / scala-pact

A Scala implementation of CDC using the Pact standard
Other
108 stars 54 forks source link

Fixes #212: ensure pact path is consistent #213

Open solarmosaic-kflorence opened 3 years ago

solarmosaic-kflorence commented 3 years ago

See #212 -- it seems that when given a new File(relativePath), file.createNewFile() will create a file in a different place for SBT sub-projects and root-projects. Using new File(absolutePath) instead resolves this issue.

I'm not sure the best way to add test coverage for this, but it can be reproduced by: