Throw if --draupnir-config option not provided. (#1054)
Some checks failed
Docker Hub - Develop / docker-latest (push) Failing after 33s
GHCR - Development Branches / ghcr-publish (push) Failing after 33s
Tests / Application Service Integration tests (push) Failing after 12s
Tests / Build & Lint (push) Failing after 6m5s
Tests / Integration tests (push) Failing after 24s
Tests / Unit tests (push) Successful in 7m15s

We still support --mjolnir-config.

https://github.com/the-draupnir-project/Draupnir/issues/218

This functionality was deprecated in
https://github.com/the-draupnir-project/Draupnir/releases/tag/v2.0.0-beta.8.

https://github.com/the-draupnir-project/planning/issues/105
This commit is contained in:
Gnuxie
2026-03-20 16:30:57 +00:00
committed by GitHub
parent 82fe093ef3
commit dcb2659ba8
2 changed files with 11 additions and 7 deletions

View File

@@ -301,13 +301,9 @@ function getConfigPath(): {
if (mjolnirPath) {
return { isDraupnirPath: false, path: mjolnirPath };
}
const path = Config.util.getConfigSources().at(-1)?.name;
if (path === undefined) {
throw new TypeError(
"No configuration path has been found for Draupnir. Use the --draupnir-config option to provide a path to the config."
);
}
return { isDraupnirPath: false, path };
throw new TypeError(
"No configuration path has been found for Draupnir. Use the --draupnir-config option to provide a path to the config."
);
}
function getConfigMeta(): NonNullable<IConfig["configMeta"]> {