From f8cfa009c110ec32001e4150b8fc895190e1320c Mon Sep 17 00:00:00 2001 From: Will Schurman Date: Tue, 31 Oct 2023 14:20:51 -0700 Subject: [PATCH] [eas-cli] Add link to SDK upgrade page for SDK-gated command error (#2106) --- CHANGELOG.md | 2 ++ packages/eas-cli/src/project/projectUtils.ts | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c967b9f342..978269f05a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ This is the log of notable changes to EAS CLI and related packages. ### ๐Ÿงน Chores +- Add link to SDK upgrade page for SDK-gated command error. ([#2106](https://github.com/expo/eas-cli/pull/2106) by [@wschurman](https://github.com/wschurman)) + ## [5.6.0](https://github.com/expo/eas-cli/releases/tag/v5.6.0) - 2023-10-27 ### ๐ŸŽ‰ New features diff --git a/packages/eas-cli/src/project/projectUtils.ts b/packages/eas-cli/src/project/projectUtils.ts index 9fbe088050..8fe2aa62d0 100644 --- a/packages/eas-cli/src/project/projectUtils.ts +++ b/packages/eas-cli/src/project/projectUtils.ts @@ -9,7 +9,7 @@ import { getEASUpdateURL } from '../api'; import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient'; import { AccountFragment, AppPrivacy } from '../graphql/generated'; import { AppQuery } from '../graphql/queries/AppQuery'; -import Log from '../log'; +import Log, { learnMore } from '../log'; import { Actor } from '../user/User'; import { expoCommandAsync } from '../utils/expoCli'; @@ -122,7 +122,9 @@ export async function enforceRollBackToEmbeddedUpdateSupportAsync( } throw new Error( - 'The expo-updates package must have a version >= 0.19.0 to use roll back to embedded, which corresponds to Expo SDK 50 or greater.' + `The expo-updates package must have a version >= 0.19.0 to use roll back to embedded, which corresponds to Expo SDK 50 or greater. ${learnMore( + 'https://docs.expo.dev/workflow/upgrading-expo-sdk-walkthrough/' + )}` ); }