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

[1/1][eas-cli] generate eas-update-metadata.json on publish #2158

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

quinlanj
Copy link
Member

Why

When we publish an update, a metadata.json file gets generated in the dist folder. This PR patches the metadata.json with some eas metadata.

motivation

It would be nice to have this for sentry-expo integration. While it is possible for users to specify the json flag for the update command to output the same information, it will be nicer if we can tell people to just run eas update and then run another script that will read from the metadata.json file

Test Plan

manually tested

@quinlanj
Copy link
Member Author

/changelog-entry new-feature patch metadata.json with eas info on publish

Copy link

✅ Thank you for adding the changelog entry!

Copy link

github-actions bot commented Dec 18, 2023

Size Change: +249 B (0%)

Total Size: 55.5 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 55.5 MB +249 B (0%)

compressed-size-action

Copy link
Member

@wschurman wschurman left a comment

Choose a reason for hiding this comment

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

What do you think about putting this in a separate file? Something like eas-update-metadata.json or eas-update-info.json?

I worry that putting it in the same file could cause nondeterministic issues for other tooling that depends on metadata.json being just the original.

@quinlanj quinlanj changed the base branch from @quin/renameFunc-frozen to main December 19, 2023 02:08
@quinlanj
Copy link
Member Author

@wschurman i've amended the PR to generate eas-update-metadata.json instead

@quinlanj quinlanj requested a review from wschurman December 19, 2023 02:09
@quinlanj quinlanj changed the title [1/1][eas-cli] patch metadata.json on publish [1/1][eas-cli] generate eas-update-metadata.json on publish Dec 19, 2023
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.

It looks reasonable to me, but I'm leaving the review for the others, more familiar with the matter

@quinlanj quinlanj merged commit 183fe87 into main Dec 19, 2023
@quinlanj quinlanj deleted the @quin/sentry branch December 19, 2023 18:57
quinlanj added a commit that referenced this pull request Jan 18, 2024
quinlanj added a commit that referenced this pull request Jan 18, 2024
… publish … (#2187)

* Revert "[1/1][eas-cli] generate eas-update-metadata.json  on publish (#2158)"

This reverts commit 183fe87.

* lint

* update CHANGELOG.md
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.

3 participants