Skip to content

Add error on invalid target name #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ue4docker/infrastructure/BuildConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,13 @@ def __init__(self, parser, argv):
"full": False,
}

for target in active_targets:
if target != "all" and target not in self.buildTargets:
valid_options = sorted(self.buildTargets.keys())
raise RuntimeError(
f"unknown build target '{target}', valid options are: all {' '.join(valid_options)}"
)

if "full" in active_targets or "all" in active_targets:
self.buildTargets["full"] = True
active_targets.add("minimal")
Expand Down