Skip to content

Commit

Permalink
Allow credentials in coursier Fetch in the model loader (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz authored Nov 23, 2022
1 parent b078966 commit b364720
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/codegen/src/smithy4s/codegen/ModelLoader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package smithy4s.codegen

import coursier._
import coursier.cache.FileCache
import coursier.parse.DependencyParser
import coursier.parse.RepositoryParser
import software.amazon.smithy.build.ProjectionTransformer
Expand Down Expand Up @@ -145,7 +146,9 @@ object ModelLoader {
}
val resolvedDeps: Seq[java.io.File] =
if (deps.nonEmpty) {
val fetch = Fetch().addRepositories(repos: _*).addDependencies(deps: _*)
val fetch = Fetch(FileCache())
.addRepositories(repos: _*)
.addDependencies(deps: _*)
fetch.run()
} else {
Seq.empty
Expand Down

0 comments on commit b364720

Please sign in to comment.