microsoft/scalar

Getting terminal prompts disabled error when cloning a new repo

sameeragrawal opened this issue · 9 comments

$ scalar clone https://office.visualstudio.com/DefaultCollection/<...>
Skipping GVFS protocol check...
Fetching objects from remote...
Failed

Cannot clone @ /Users/sameer/enlist/<...>
Error: Failed to complete regular clone: fatal: helper error (255): Interactivity is required but has been disabled.
fatal: could not read Username for 'https://office.visualstudio.com': terminal prompts disabled

Had to manually run a git clone to complete the auth, and then ran scalar clone again to make it work

OS: Mac Big Sur

$ git version           
git version 2.28.0
$ scalar version                             
scalar 20.10.178.6

Both git and scalar are installed using homebrew

Hi @sameeragrawal I'm sorry you're having this problem.

Have you tried installing microsoft/Git-Credential-Manager-Core using homebrew?

$ brew cask install git-credential-manager-core

I believe we have tested this case in particular, but it might not be set up correctly for the default helper.

I just checked, and #439 should have fixed this. If it did not, then we need to go back and try again.

Can you help with the build number where this was released? my scalar version is listed above.

Also, checked that git-credential-manager-core was installed as part of scalar installation itself

$ brew cask install scalar
==> Downloading https://github.com/microsoft/scalar/releases/download/v20.10.178.6/Installers_macOS_Release.zip
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/201114820/f58ca200-13a8-11eb-9782-816a88aa779f?X-Amz-Algorithm=
######################################################################## 100.0%
==> Installing dependencies: git-credential-manager-core
==> Downloading https://github.com/microsoft/Git-Credential-Manager-Core/releases/download/v2.0.280-beta/gcmcore-osx-2.0.280.19487.pkg
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/158405551/63cd4f00-1d2f-11eb-851c-e10ec4fda036?X-Amz-Algorithm=
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'git-credential-manager-core'.
==> Installing Cask git-credential-manager-core
==> Running installer for git-credential-manager-core; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
installer: Package name is Git Credential Manager Core
installer: Installing at base path /
installer: The install was successful.
🍺  git-credential-manager-core was successfully installed!
==> Verifying SHA-256 checksum for Cask 'scalar'.
==> Installing Cask scalar
==> Running installer for scalar; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
installer: Package name is Scalar
installer: Installing at base path /
installer: The install was successful.
🍺  scalar was successfully installed!
$

@sameeragrawal could you clarify some things about your environment while we wait for @mjcheetham to wake up and take a look?

Specifically:

  1. What command-line tool are you using? Terminal?
  2. Is there anything custom about your environment? Are you using SSH or something?

I am using Mac's default Terminal app.
I am remotely connected to the Mac using Remotix NEAR

@sameeragrawal, can you try running the scalar clone with the following environment variable set?

GCM_TRACE=/Users/<user>/Desktop/gcm.log scalar clone https://office.visualstudio.com/DefaultCollection/<...>

..where <user> is your username, and reply with the output of the trace log?

⚠️ Please redact any private information such as URLs from the output before posting! Secrets/passwords should already be masked but please double check on URLs and file/usernames.

Thanks!

$ scalar clone https://office.visualstudio.com/DefaultCollection/<...>
Skipping GVFS protocol check...
Fetching objects from remote...
Failed

I should have noticed this earlier, but the Skipping GVFS protocol check message is because...

$ git version           
git version 2.28.0
$ scalar version                             
scalar 20.10.178.6

Your Git version doesn't include .vfs., so it cannot communicate via the GVFS protocol. If you intended to use the GVFS protocol, then...

Both git and scalar are installed using homebrew

Did you specifically brew cask install scalar-azrepos? That downloads our custom version of Git which will enable the GVFS protocol.

The GVFS protocol check will authenticate for you before we get to the fetch, so if you fix your Git version you should be unblocked.

We still have a bug in Scalar that doesn't allow for interactive auth, and we will remedy it. You should just be able to get unblocked without needing a new release.

@derrickstolee No, I did the install scalar, and was using the git already installed on machine via homebrew.
I did not intend to use GVFS version.

@mjcheetham I tried that, but after scalar clone shows the failure, no gcm.log is generated.