From: Daan De Meyer Date: Tue, 14 May 2024 10:36:38 +0000 (+0200) Subject: Drop check for workspace directory relative to cwd X-Git-Tag: v23.1~55^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaf2f7780b36c74bfe3bfcf6a62ab66d55c35419;p=thirdparty%2Fmkosi.git Drop check for workspace directory relative to cwd The current working directory check is only relevant if the current working directory is used as a build source, which means it's also handled by the second check so let's drop it. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 44608d5af..ff530538c 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -4233,10 +4233,6 @@ def finalize_default_tools(args: Args, config: Config, *, resources: Path) -> Co def check_workspace_directory(config: Config) -> None: wd = config.workspace_dir_or_default() - if wd.is_relative_to(Path.cwd()): - die(f"The workspace directory ({wd}) must be located outside the current working directory ({Path.cwd()})", - hint="Use WorkspaceDirectory= to configure a different workspace directory") - for tree in config.build_sources: if wd.is_relative_to(tree.source): die(f"The workspace directory ({wd}) cannot be a subdirectory of any source directory ({tree.source})",