minor
This commit is contained in:
parent
875435bc02
commit
fba217e92a
4
Makefile
4
Makefile
|
@ -1,8 +1,8 @@
|
|||
VERSION = $(shell git describe --tags)
|
||||
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
|
||||
|
||||
run: goimports build
|
||||
./go-clean --version
|
||||
run: goimports install
|
||||
go-clean --version
|
||||
|
||||
vet:
|
||||
@GO111MODULE=off go vet
|
||||
|
|
15
main.go
15
main.go
|
@ -69,14 +69,19 @@ func main() {
|
|||
badExit(err)
|
||||
}
|
||||
|
||||
// try to trim junk
|
||||
if err := forge.TrimGoSum(check); err != nil {
|
||||
badExit(err)
|
||||
}
|
||||
|
||||
// check go.sum file
|
||||
if err := forge.CleanGoDepsCheckOk(check); err == nil {
|
||||
log.Info("forge.FinalGoDepsCheck() worked :", check.GoPath)
|
||||
okExit(check.GoPath + " go.sum seems clean")
|
||||
} else {
|
||||
if err := forge.CleanGoDepsCheckOk(check); err != nil {
|
||||
log.Info("forge.FinalGoDepsCheck() failed. boo. :", check.GoPath)
|
||||
badExit(err)
|
||||
}
|
||||
|
||||
log.Info("forge.FinalGoDepsCheck() worked :", check.GoPath)
|
||||
okExit(check.GoPath + " go.sum seems clean")
|
||||
}
|
||||
|
||||
func findPwdRepo() *gitpb.Repo {
|
||||
|
@ -104,6 +109,6 @@ func okExit(thing string) {
|
|||
}
|
||||
|
||||
func badExit(err error) {
|
||||
log.Info("Finished go-clean with error", err, forge.GetGoSrc())
|
||||
log.Info("go-clean failed: ", err, forge.GetGoSrc())
|
||||
os.Exit(-1)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue