expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
840 stars 85 forks source link

Expo.dev can't connect to git to finish onboarding #2685

Closed CIreland-app closed 1 week ago

CIreland-app commented 1 week ago

Summary

npx eas-cli@latest init:onboarding Produces: [git] Cloning into '/Users/chrisireland/CrossfitAppBackend/CF-app/c-ireland'... Username for 'https://github.com': CIreland-app Password for 'https://CIreland-app@github.com': [git] remote: Support for password authentication was removed on August 13, 2021. [git] remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. [git] fatal: Authentication failed for 'https://github.com/CIreland-app/c-ireland.git/' ❌ git clone https://github.com/CIreland-app/c-ireland.git /Users/chrisireland/CrossfitAppBackend/CF-app/c-ireland failed git clone https://github.com/CIreland-app/c-ireland.git /Users/chrisireland/CrossfitAppBackend/CF-app/c-ireland exited with non-zero code: 128 Error: project:onboarding command failed.

Producing a Personal Access Token and either changing Keychain Access or "git remote set-url origin https://PAT>@github.com/<username/" didn't help

What platform(s) does this occur on?

No response

SDK Version

No response

Environment

expo-env-info 1.2.0 environment info:
    System:
      OS: macOS 14.3
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 22.11.0 - /usr/local/bin/node
      npm: 10.9.0 - /usr/local/bin/npm
    IDEs:
      Xcode: /undefined - /usr/bin/xcodebuild
    npmPackages:
      expo: ~51.0.28 => 51.0.38 
      expo-router: ~3.5.23 => 3.5.23 
      react: 18.2.0 => 18.2.0 
      react-dom: 18.2.0 => 18.2.0 
      react-native: 0.74.5 => 0.74.5 
      react-native-web: ~0.19.10 => 0.19.13 
    Expo Workflow: managed

Minimal reproducible example

npx eas-cli@latest init:onboarding

szdziedzic commented 1 week ago

Hey,

I believe the easiest way to authenticate with GitHub is by using SSH: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.

You can try to set it up, and then remove the project directory cloned for you by the init:onboarding command and rerun the command.