undo typo in tarball url format

This commit is contained in:
Benoit Gagnon 2019-09-28 11:43:10 -04:00
parent 741e7f316f
commit 41278d8ef4

View file

@ -171,7 +171,7 @@ func (p *GitPackage) Install(ctx context.Context, name, dir, version string) (st
// the ETag header included in the response. // the ETag header included in the response.
isGitHubRemote, err := regexp.MatchString(`^(https|ssh)://github\.com/.+$`, p.Source.Remote) isGitHubRemote, err := regexp.MatchString(`^(https|ssh)://github\.com/.+$`, p.Source.Remote)
if isGitHubRemote { if isGitHubRemote {
archiveUrl := fmt.Sprintf("%s/archive/%s.tar.gzz", p.Source.Remote, version) archiveUrl := fmt.Sprintf("%s/archive/%s.tar.gz", p.Source.Remote, version)
archiveFilepath := fmt.Sprintf("%s.tar.gz", tmpDir) archiveFilepath := fmt.Sprintf("%s.tar.gz", tmpDir)
defer os.Remove(archiveFilepath) defer os.Remove(archiveFilepath)