Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…2411) * [eas-cli] Update tests Updated the tests to reflect the change of the default `appVersionSource` value See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update remote version handling Updated the logic for REMOTE version source to treat undefined `appVersionSource` as REMOTE instead of LOCAL See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Refactor tests Extracted the helper functions overriding the `appVersionSource` in eas.json to utils.ts See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update version source when running builds Applied the same change to the build command as was applied to version commands See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * update CHANGELOG.md * [eas-cli] Adjust changelog After it was correctly pointed out by @sjchmiela, the changelog has been amended to list the current changes not as chores and as breaking change instead See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Prompt the user The user is now prompted when they don't specify `appVersionSource` to either set it automatically to LOCAL/REMOTE or abort the command and configure it manually. This removes the default behaviour alltogether and avoids a situation where some users have been relying on the old default and would now be surprised See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update message Updated the message displayed to the user when prompting for selection after the review See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update message Updated the message displayed to the user when prompting for selection after the review See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update default eas.json Updated the default eas.json created with `configure` command See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update default eas.json Updated the default eas.json created with `onboarding` command See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Check for non-interactive Made the function prompting the user for selection on what to do with appVersionSource to respect the non-interactive flag, and abort the operation in non-interactive mode since the user can't make a selection See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Remove code duplication Moved the setting of appVersionSource in easJsonCliConfig into the function prompting the user, which allows for implementing that in one place instead of 3 See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Fix circular dependency There was a circular dependency introduced with passing of the flags into a function. The definition of the build flags has been moved into the types.ts file to avoid itĻ See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * Update packages/eas-cli/src/project/remoteVersionSource.ts Co-authored-by: Szymon Dziedzic <[email protected]> * [eas-cli] Adjust wording Changed the wording of the message displayed to the user to more accurately describe how app versions are handled See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update default eas.json Added autoIncrement: true when creating the default eas.json with remote appVersionSource See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Don't implicitly assume remote appVersionSource The user is required to set appVersionSource in interactive mode so it should always be set. In non-interactive mode it can be not set, and in that case the default remains the same as it was, which is local See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Don't implicitly assume remote appVersionSource The user is required to set appVersionSource in interactive mode so it should always be set. In non-interactive mode it can be not set, and in that case the default remains the same as it was, which is local See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Set autoIncrement When creating the default eas.json set autoIncrement: true See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Set appVersionSource to local for non-interactive To not break CIs that the users built for their apps in non-interactive mode we need to select the appVersionSource automatically in those cases. And since they may be counting on it being local since that was the previous default we need to keep setting it to local even if the new default is remote See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Handle autoIncrement != true Do not ensure `appVersionSource` is set if the user has `autoIncrement: 'veresion'`. Display a message if the user doesn't have `autoIncrement: true` but don't prompt them to set `appVersionSource` See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Add missing quote Added missing quote sign in the log message See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Add comma Added comma to the log message See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Tweak message Tweaked the log message according to the review comment See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * Update packages/eas-cli/src/build/runBuildAndSubmit.ts Co-authored-by: Szymon Dziedzic <[email protected]> * [eas-cli] Don't change eas.json in non-interactive mode When defaulting the value of `appVersionSource` for commands executed in non-interactive mode the eas.json is not modified and the value is assumed only at runtime. This removes the need to commit changes, which in turn eliminates the risk of mistakenly committing working changes the user might have when executing the command See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update message Updated the message to correctly state how the version are handled with local appversionsource See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update message Updated the message to correctly state how the version are handled with remote appversionsource See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update message Updated the message based on review suggestions See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * Update packages/eas-cli/src/project/remoteVersionSource.ts Co-authored-by: Szymon Dziedzic <[email protected]> * [eas-cli] Reformat Improved formatting See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * Update packages/eas-cli/src/project/remoteVersionSource.ts Co-authored-by: Szymon Dziedzic <[email protected]> * Update packages/eas-cli/src/project/remoteVersionSource.ts Co-authored-by: Szymon Dziedzic <[email protected]> * Update packages/eas-cli/src/build/runBuildAndSubmit.ts Co-authored-by: Szymon Dziedzic <[email protected]> * [eas-cli] Reformat Improved formatting See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * Update packages/eas-cli/src/project/remoteVersionSource.ts Co-authored-by: Szymon Dziedzic <[email protected]> * [eas-cli] Reformat Improved formatting See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * Update packages/eas-cli/src/project/remoteVersionSource.ts Co-authored-by: Szymon Dziedzic <[email protected]> * [eas-cli] Post-merge fix Fixed issues after merging in the main branch See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * [eas-cli] Update version mentioned Updated the version number that includes the current changes after a new major version had been released in the meantime See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote * Update packages/eas-cli/src/project/remoteVersionSource.ts Co-authored-by: Szymon Dziedzic <[email protected]> * [eas-cli] Lint Fixed linting error See: https://linear.app/expo/issue/ENG-11843/change-default-appversionsource-to-remote --------- Co-authored-by: Szymon Dziedzic <[email protected]>
- Loading branch information