зеркало из https://github.com/golang/dep.git
rename hoard to deb
This commit is contained in:
Родитель
b07f69b565
Коммит
a7ea40f0e4
12
analyzer.go
12
analyzer.go
|
@ -14,12 +14,12 @@ import (
|
|||
|
||||
type analyzer struct{}
|
||||
|
||||
// TODO: If we decide to support other tools manifest, this is where we would need
|
||||
// to add that support.
|
||||
func (a analyzer) DeriveManifestAndLock(path string, n gps.ProjectRoot) (gps.Manifest, gps.Lock, error) {
|
||||
// TODO: If we decide to support other tools manifest, this is where we would need
|
||||
// to add that support.
|
||||
mf := filepath.Join(path, manifestName)
|
||||
if fileOK, err := isRegular(mf); err != nil || !fileOK {
|
||||
// Do not return an error, when does not exist
|
||||
// Do not return an error, when does not exist.
|
||||
return nil, nil, nil
|
||||
}
|
||||
f, err := os.Open(mf)
|
||||
|
@ -32,12 +32,12 @@ func (a analyzer) DeriveManifestAndLock(path string, n gps.ProjectRoot) (gps.Man
|
|||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
// TODO: no need to return lock til we decide about preferred versions
|
||||
// https://github.com/sdboyer/gps/wiki/gps-for-Implementors#preferred-versions
|
||||
// TODO: No need to return lock til we decide about preferred versions, see
|
||||
// https://github.com/sdboyer/gps/wiki/gps-for-Implementors#preferred-versions.
|
||||
return m, nil, nil
|
||||
}
|
||||
|
||||
func (a analyzer) Info() (name string, version *semver.Version) {
|
||||
v, _ := semver.NewVersion("v0.0.1")
|
||||
return "hoard", v
|
||||
return "deb", v
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче