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 parsing EXPO_APPLE_PROVIER_ID env var #2349

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

louix
Copy link

@louix louix commented Apr 29, 2024

Why

getenv.int(process.env.EXPO_APPLE_PROVIER_ID) will lookup the value of the EXPO_APPLE_PROVIER_ID in process.env and try to parse that as an int (similar to trying process.env[process.env.EXPO_APPLE_PROVIER_ID])

If at runtime process.env.EXPO_APPLE_PROVIER_ID is 12345, the code will fail with:

Authentication with Apple Developer Portal failed!
GetEnv.Nonexistent: 12345 does not exist and no fallback value provided.

Where process.env["12345"] does not exist.

Test Plan

Simply try to set EXPO_APPLE_PROVIER_ID to anything on the current eas-cli build.

@louix
Copy link
Author

louix commented Apr 29, 2024

/changelog-entry bug-fix fix parsing EXPO_APPLE_PROVIER_ID env var

Copy link
Contributor

@sjchmiela sjchmiela left a comment

Choose a reason for hiding this comment

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

That's awesome, thank you!! Can you please fix the lint and add a changelog entry?

@louix
Copy link
Author

louix commented Apr 29, 2024

Sure, yeah sorry I should have run prettier.

Is the /changelog-entry thing broken? Manually added it anyway.

Copy link
Member

@szdziedzic szdziedzic left a comment

Choose a reason for hiding this comment

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

awesome

@szdziedzic
Copy link
Member

Is the /changelog-entry thing broken? Manually added it anyway.

It seems to be broken for external contributors 🤔 I will take a look at it later on. Meanwhile, feel free to ignore this failed changelog action and merge the PR

@louix
Copy link
Author

louix commented May 22, 2024

I cannot merge this PR by the way, so I assume someone on your side needs to.

Only those with write access to this repository can merge pull requests.

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.

None yet

3 participants