From b364720107e6a8795b4e2d266769b32f7d900356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owski?= Date: Wed, 23 Nov 2022 21:27:13 +0100 Subject: [PATCH] Allow credentials in coursier Fetch in the model loader (#632) --- modules/codegen/src/smithy4s/codegen/ModelLoader.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/codegen/src/smithy4s/codegen/ModelLoader.scala b/modules/codegen/src/smithy4s/codegen/ModelLoader.scala index 99d4d4124..3422edb1e 100644 --- a/modules/codegen/src/smithy4s/codegen/ModelLoader.scala +++ b/modules/codegen/src/smithy4s/codegen/ModelLoader.scala @@ -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 @@ -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