-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
fix(ios): sample build script --debug detection #10953
Conversation
User Test ResultsTest specification and instructions User tests are not required |
ios/samples/common.inc.sh
Outdated
if builder_is_debug_build; then | ||
# `builder_is_debug_build` appears to fail here, while referring to the option does not? | ||
# Perhaps it's due to being within a function? | ||
if builder_has_option --debug; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Crossreference lines 11-13; the same issue is noted there.
Currently falling over here:
The CI build for the samples calls the main samples' build script directly. That script triggers the iOS engine build script via dependency... and that call doesn't include the I'm not sure what the best way is to work around the issue at the moment - we can't pass |
Debug flag is supposed to be handled for dependency builds, I thought. If not, we should fix that separately. |
Let's get this fixed in builder, will open an issue |
The '--debug' flag should not be specified as a parameter in the builder_describe call.
Pushed a commit which resolves the --debug issue. |
The one thing I don't like about the fix is that it results in less-documented build scripts - I'd originally specified the That said... I guess it's a bit late in the release cycle to tweak that, eh? |
It's best if the build scripts don't need more information about The description "Activates developer-friendly debug mode for unit tests where applicable" shouldn't be necessary. "--debug" means developer-friendly debug mode, that's its entire purpose. And "for unit tests" should be self-evident. If it isn't, then we should look at updating our wikis (not that we have one for build.sh at present). |
Eh, given our success rate of thinking things in code are self-evident within the team, I'm not terribly optimistic about external developers finding all the implications of --debug self-evident per project. |
I think you are missing the point. build.sh is intended to be consistent across projects. If it isn't, then we should try and make it so. This is especially the case for a common flag like --debug |
Changes in this pull request will be available for download in Keyman version 17.0.309-beta |
Fixes #9674.
@keymanapp-test-bot skip