mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Fix compile warnings after scala update
This commit is contained in:
@ -142,7 +142,7 @@ class AddonExecutorTest extends CatsEffectSuite with Fixtures with TestLoggingCo
|
||||
AddonExecutionResult.executionResultMonoid
|
||||
.combine(
|
||||
AddonExecutionResult.empty,
|
||||
AddonExecutionResult(Nil, true)
|
||||
AddonExecutionResult(Nil, pure = true)
|
||||
)
|
||||
.pure
|
||||
)
|
||||
|
@ -27,9 +27,9 @@ object AddonGenerator {
|
||||
): Resource[IO, AddonArchive] =
|
||||
output match {
|
||||
case None =>
|
||||
generate(name, version, false)("exit 0")
|
||||
generate(name, version, collectOutput = false)("exit 0")
|
||||
case Some(out) =>
|
||||
generate(name, version, true)(
|
||||
generate(name, version, collectOutput = true)(
|
||||
s"""
|
||||
|cat <<-EOF
|
||||
|${out.asJson.noSpaces}
|
||||
@ -77,8 +77,9 @@ object AddonGenerator {
|
||||
meta = AddonMeta.Meta(name, version, None),
|
||||
triggers = Set(AddonTriggerType.ExistingItem: AddonTriggerType).some,
|
||||
args = None,
|
||||
runner =
|
||||
AddonMeta.Runner(None, None, AddonMeta.TrivialRunner(true, "addon.sh").some).some,
|
||||
runner = AddonMeta
|
||||
.Runner(None, None, AddonMeta.TrivialRunner(enable = true, "addon.sh").some)
|
||||
.some,
|
||||
options =
|
||||
AddonMeta.Options(networking = !collectOutput, collectOutput = collectOutput).some
|
||||
)
|
||||
|
@ -40,13 +40,13 @@ trait Fixtures extends TestLoggingConfig { self: CatsEffectSuite =>
|
||||
),
|
||||
None,
|
||||
runner = Runner(
|
||||
nix = NixRunner(true).some,
|
||||
nix = NixRunner(enable = true).some,
|
||||
docker = DockerRunner(
|
||||
enable = true,
|
||||
image = None,
|
||||
build = "Dockerfile".some
|
||||
).some,
|
||||
trivial = TrivialRunner(true, "src/addon.sh").some
|
||||
trivial = TrivialRunner(enable = true, "src/addon.sh").some
|
||||
).some,
|
||||
options = Options(networking = true, collectOutput = true).some
|
||||
)
|
||||
@ -65,7 +65,7 @@ trait Fixtures extends TestLoggingConfig { self: CatsEffectSuite =>
|
||||
runner: RunnerType,
|
||||
runners: RunnerType*
|
||||
): AddonExecutorConfig = {
|
||||
val nspawn = NSpawn(false, "sudo", "systemd-nspawn", Duration.millis(100))
|
||||
val nspawn = NSpawn(enabled = false, "sudo", "systemd-nspawn", Duration.millis(100))
|
||||
AddonExecutorConfig(
|
||||
runner = runner :: runners.toList,
|
||||
runTimeout = Duration.minutes(2),
|
||||
|
Reference in New Issue
Block a user