-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
utils: Provide error message for missing build preset options #254
Conversation
Thank you, nice improvement! If I may, could I ask you to take this one step further and:
This will emit all of the missing interpolations instead of wasting time running the command several times to find out you've missed another option. |
Yes, sounds good. |
Adds a try/catch block to utils/SwiftBuildSupport.py to catch ConfigParser.InterpolationMissingOptionError exceptions caused by missing required preset options. Stores all missing options to print before exit(1) in get_preset_options().
Ok, hows this? The exception occurs in the items() generator:
Which breaks out of the entire for loop, so I've changed it to use |
Output example: user@server $ ./build-script --preset=buildbot_linux_140
./build-script: preset 'buildbot_linux_140' not found
user@server $ ./build-script --preset=buildbot_linux_1404 install_destdir="/tmp"
./build-script: missing option(s) for preset 'buildbot_linux_1404': installable_package
user@server $ ./build-script --preset=buildbot_linux_1404
./build-script: missing option(s) for preset 'buildbot_linux_1404': install_destdir, installable_package |
Fantastic. Let's pull it in. |
utils: Provide error message for missing build preset options
…0-merge-master Merge darwin/libdispatch-890 to master
…0-merge-master Merge darwin/libdispatch-890 to master Signed-off-by: Daniel A. Steffen <[email protected]>
…to-thick-thunk [WASM] Skip thunk generation for throws func
Add SwiftLint Swift 4.2 compatibility version hash
Adds a try/catch block to utils/SwiftBuildSupport.py to catch ConfigParser.InterpolationMissingOptionError caused by missing required preset options such as: install_destdir.
Changes this:
To this: