blob: d49b60b3f030159f1584fa5ef0063749ad95bfe5 [file] [log] [blame]
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// TODO: Figure out what should do.
package modfetch
import (
func gopkginLookup(path string) (codehost.Repo, error) {
root, _, _, _, ok := modfile.ParseGopkgIn(path)
if !ok {
return nil, fmt.Errorf("invalid path: %q", path)
return gitrepo.Repo("https://"+root, root)