Skip to content

Commit

Permalink
Remove the inference of fs paths from strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Baccata committed May 19, 2022
1 parent f18c413 commit edf9c19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ object Smithy4sCodegenPlugin extends AutoPlugin {
* to decide whether or not Codegen should run.
*/
def cachedSmithyCodegen(conf: Configuration) = Def.task {
val outputPath = (conf / smithy4sOutputDir).value.getAbsolutePath()
val openApiOutputPath = (conf / smithy4sOpenapiDir).value.getAbsolutePath()
val outputPath = (conf / smithy4sOutputDir).value
val openApiOutputPath = (conf / smithy4sOpenapiDir).value
val allowedNamespaces =
(conf / smithy4sAllowedNamespaces).?.value.map(_.toSet)
val excludedNamespaces =
Expand Down
3 changes: 2 additions & 1 deletion modules/codegen/src/smithy4s/codegen/Codegen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ object Codegen { self =>
Renderer(amended)
}
.map { result =>
val relPath = os.RelPath(result.namespace.replace('.', '/'))
val relPath =
os.RelPath(result.namespace.split('.').toIndexedSeq, ups = 0)
(relPath, result.name, result.content)
}
}
Expand Down

0 comments on commit edf9c19

Please sign in to comment.