Skip to content
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(cordova) iOS fails to build when sentry.cli not defined #401

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

lucas-zimerman
Copy link
Contributor

@lucas-zimerman lucas-zimerman commented Aug 17, 2023

By default, Sentry.CLI is bundled with Sentry Cordova and can be accessed on the following path: plugins/sentry-cordova/node_modules/@sentry/cli/bin/sentry-cli

The current code breaks the build if cli.executable is not defined on sentry.properties, so this fix sets the default value when not defined to plugins/sentry-cordova/node_modules/@sentry/cli/bin/sentry-cli.

EDIT:

code build with and without cli.executable:

image
image

@kahest kahest requested a review from Lms24 August 17, 2023 12:11
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

(out of curiosity: Do you know why we use the sentry.properties file here as opposed to .sentryclirc? No action required, just interested)

@lucas-zimerman
Copy link
Contributor Author

No idea to be honest, probably wasn't migrated to sentryclirc.

@Lms24 Lms24 merged commit 9cd8cc6 into getsentry:master Aug 17, 2023
@lucas-zimerman lucas-zimerman deleted the fix/cordova-sentry-cli branch August 17, 2023 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants