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

eas update --channel ineffective #1946

Open
stesvis opened this issue Jul 22, 2023 · 1 comment
Open

eas update --channel ineffective #1946

stesvis opened this issue Jul 22, 2023 · 1 comment
Labels
eas update needs review Issue is ready to be reviewed by a maintainer

Comments

@stesvis
Copy link

stesvis commented Jul 22, 2023

Build/Submit details page URL

No response

Summary

Can't set the channel variables when I run eas update --channel staging, but it works for eas update.

Managed or bare?

Managed

Environment

  expo-env-info 1.0.5 environment info:
    System:
      OS: Windows 10 10.0.22621
    Binaries:
      Node: 18.16.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 9.6.6 - C:\Program Files\nodejs\npm.CMD
    IDEs:
      Android Studio: AI-222.4459.24.2221.9862592
    npmPackages:
      babel-preset-expo: ^9.3.0 => 9.5.0 
      expo: ^48.0.19 => 48.0.20 
      react: 18.2.0 => 18.2.0 
      react-native: 0.71.8 => 0.71.8 
    Expo Workflow: managed
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that native modules do not use incompatible support packages
✔ Check for legacy global CLI installed locally
✖ Check that native modules use compatible support package versions for installed Expo SDK
✖ Check that packages match versions required by installed Expo SDK

Detailed check results:

Expected package @expo/config-plugins@~6.0.0
Found invalid:
  @expo/[email protected]
  (for more info, run: npm why @expo/config-plugins)
Advice: Upgrade dependencies that are using the invalid package versions.

Some dependencies are incompatible with the installed expo version:
  [email protected] - expected version: ~6.2.0
Your project may not work correctly until you install the correct versions of the packages.
Install individual packages by running npx expo install sentry-expo@~6.2.0
Found outdated dependencies
Advice: Use 'npx expo install --check' to review and upgrade your dependencies.

One or more checks failed, indicating possible issues with the project.

Error output

No response

Reproducible demo or steps to reproduce from a blank project

I have an eas.json that looks like this:

{
  "cli": {
    "version": ">= 3.16.0"
  },
  "build": {
    "android": {
      "autoIncrement": true
    },
    "ios": {
      "autoIncrement": true
    },
    "development": {
      "channel": "development",
      "developmentClient": true,
      "distribution": "internal",
      "env": {
        "EXPO_PUBLIC_ENV": "development"
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "channel": "production",
      "android": {
        "buildType": "apk"
      },
      "env": {
        "EXPO_PUBLIC_ENV": "production"
      }
    },
    "staging": {
      "channel": "staging",
      "android": {
        "buildType": "apk"
      },
      "env": {
        "EXPO_PUBLIC_ENV": "staging"
      }
    }
  },
  "submit": {
    "production": {}
  }
}

When I run eas build --profile staging everything works great, I have a page where I print Updates.channel and the result is staging.

When I run eas update --channel staging and then open the app, the page shows that Updates.channel is empty.

QUESTION: how can I run eas update and still have the same Updates.channel = "staging"?

@stesvis stesvis added the needs review Issue is ready to be reviewed by a maintainer label Jul 22, 2023
@agrittiwari
Copy link

I have also seem to be able to use only --branch "staging" and not --channel>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eas update needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants