Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 00a5b76

Browse files
committed
Whoops, need to export Analyzer now
1 parent 8438fd4 commit 00a5b76

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

analyzer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
"github.com/sdboyer/gps"
1212
)
1313

14-
type analyzer struct{}
14+
type Analyzer struct{}
1515

16-
func (a analyzer) DeriveManifestAndLock(path string, n gps.ProjectRoot) (gps.Manifest, gps.Lock, error) {
16+
func (a Analyzer) DeriveManifestAndLock(path string, n gps.ProjectRoot) (gps.Manifest, gps.Lock, error) {
1717
// TODO: If we decide to support other tools manifest, this is where we would need
1818
// to add that support.
1919
mf := filepath.Join(path, ManifestName)
@@ -36,6 +36,6 @@ func (a analyzer) DeriveManifestAndLock(path string, n gps.ProjectRoot) (gps.Man
3636
return m, nil, nil
3737
}
3838

39-
func (a analyzer) Info() (string, int) {
39+
func (a Analyzer) Info() (string, int) {
4040
return "dep", 1
4141
}

analyzer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestDeriveManifestAndLock(t *testing.T) {
2222
want := h.GetTestFileString(golden)
2323
h.TempCopy(filepath.Join("dep", ManifestName), golden)
2424

25-
a := analyzer{}
25+
a := Analyzer{}
2626

2727
m, l, err := a.DeriveManifestAndLock(h.Path("dep"), "my/fake/project")
2828
if err != nil {
@@ -56,7 +56,7 @@ func TestDeriveManifestAndLockDoesNotExist(t *testing.T) {
5656
}
5757
defer os.RemoveAll(dir)
5858

59-
a := analyzer{}
59+
a := Analyzer{}
6060

6161
m, l, err := a.DeriveManifestAndLock(dir, "my/fake/project")
6262
if m != nil || l != nil || err != nil {

cmd/dep/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (cmd *initCommand) Run(ctx *dep.Ctx, args []string) error {
141141
RootPackageTree: pkgT,
142142
Manifest: m,
143143
Lock: l,
144-
ProjectAnalyzer: analyzer{},
144+
ProjectAnalyzer: dep.Analyzer{},
145145
}
146146

147147
if *verbose {

project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type Project struct {
6060
func (p *Project) MakeParams() gps.SolveParameters {
6161
params := gps.SolveParameters{
6262
RootDir: p.AbsRoot,
63-
ProjectAnalyzer: analyzer{},
63+
ProjectAnalyzer: Analyzer{},
6464
}
6565

6666
if p.Manifest != nil {

0 commit comments

Comments
 (0)