X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e64b71e098878da66c434b7f7c09d36f2650f38e..02d7f4e820b65d83a5e3709dc14b6d72b9f5ab49:/services/crunch-run/git_mount.go diff --git a/services/crunch-run/git_mount.go b/services/crunch-run/git_mount.go index 92b83710b1..c312a532e4 100644 --- a/services/crunch-run/git_mount.go +++ b/services/crunch-run/git_mount.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + package main import ( @@ -8,7 +12,7 @@ import ( "regexp" "git.curoverse.com/arvados.git/sdk/go/arvados" - "gopkg.in/src-d/go-billy.v3/osfs" + "gopkg.in/src-d/go-billy.v4/osfs" git "gopkg.in/src-d/go-git.v4" git_config "gopkg.in/src-d/go-git.v4/config" git_plumbing "gopkg.in/src-d/go-git.v4/plumbing" @@ -78,7 +82,10 @@ func (gm gitMount) extractTree(ac IArvadosClient, dir string, token string) erro } err = repo.Fetch(&git.FetchOptions{ RemoteName: "origin", - Auth: git_http.NewBasicAuth("none", token), + Auth: &git_http.BasicAuth{ + Username: "none", + Password: token, + }, }) if err != nil { return fmt.Errorf("git fetch %q: %s", u.String(), err)