diff --git a/Makefile b/Makefile index afe34cd..e754bad 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # go install -all: vet goimports forgeConfig.pb.go uuid.pb.go patch.pb.go vet +all: goimports forgeConfig.pb.go uuid.pb.go patch.pb.go vet vet: @GO111MODULE=off go vet diff --git a/build.go b/build.go index 2457177..1fcb5cc 100644 --- a/build.go +++ b/build.go @@ -198,3 +198,11 @@ func (f *Forge) runAutogenpb(repo *gitpb.Repo) error { } return nil } + +// sortcut to find +func (f *Forge) FindWorkingDirRepo() *gitpb.Repo { + pwd, _ := os.Getwd() + basedir := strings.TrimPrefix(pwd, f.GetGoSrc()) + basedir = strings.Trim(basedir, "/") + return f.Repos.FindByGoPath(basedir) +} diff --git a/forgepb.go b/forgepb.go deleted file mode 100644 index 1a4c619..0000000 --- a/forgepb.go +++ /dev/null @@ -1,3 +0,0 @@ -// Package forgepb describes the protobuf's used by 'go.wit.com/apps/forge' -package forgepb // import "go.wit.com/lib/protobuf/forgepb" -// `go-clean go=1.18`