Open marklani opened 1 month ago
Most likely this is due to dulwich (one of Git backends that we are using to clone the repo) not supporting credential helpers - e.g. https://github.com/jelmer/dulwich/issues/873
@skshetry do you remember by chance why did we decide to do clones with dulwich?
Bug Report
Description
We have been using dvc 2.9.5 for awhile and had to upgrade to dvc 3.50.2 due to pip installed dvc 2.9.5 does not work in a python virtual environment.
However, after upgrading to dvc 3.50.2, we found out that dvc pull does not work possibly due to credential errors. Even though credentials are set in git config global credentials as below, it is still asking for the username and password.
[credential "https://gitlab.com/repo"] useHttpPath = true helper = "!f() { echo \"username=ACCESS_TOKEN\"; echo \"password=${ACCESS_TOKEN}\"; }; f"
The $ACCESS_TOKEN is set as an environment variable.
If we re-init by
dvc import
ing the repo, it will fail as well due to the same reasonReproduce
Expected
dvc pull should work without asking for credentials
Environment information
Output of
dvc doctor
:Output of
dvc import
with verbose:Additional Information (if any):