Skip to content

Commit

Permalink
fix sonar-cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Jun 15, 2020
1 parent 180face commit 7b2808b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/hof/cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ func init() {

func GenRun(args []string) (err error) {

return lib.Gen(args, flags.GenFlags)

// you can safely comment this print out
// fmt.Println("not implemented")

err = lib.Gen(args, flags.GenFlags)

return err
}

Expand Down Expand Up @@ -77,4 +77,4 @@ func init() {
GenCmd.SetHelpFunc(thelp)
GenCmd.SetUsageFunc(tusage)

}
}
3 changes: 3 additions & 0 deletions lib/mod/modder/modder_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ func (mdr *Modder) CheckAndFetchRootDeps() error {
}

_, ok := sf.Mods[ver]
// TODO, implement this
/*
if !ok {
// TODO fetch missing dep
// fmt.Println("fetch missing mod->sum", ver, R, v)
Expand All @@ -122,6 +124,7 @@ func (mdr *Modder) CheckAndFetchRootDeps() error {
// TODO if not verify, fetch
}
*/

}

Expand Down
3 changes: 3 additions & 0 deletions lib/mod/modder/modder_vendor.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,15 @@ func (mdr *Modder) LoadRemoteModule(R Replace) error {
// If sumfile, check integrity and possibly shortcut
if mdr.module.SumFile != nil {
err := mdr.CompareSumEntryToVendor(R)
// TODO, exit with some severe warning
/*
if err == nil {
// return nil
// TODO, add dependencies to processing
} else {
// fmt.Println("Error:", err)
}
*/
}

// TODO, check if valid and just add m.deps to processing
Expand Down
2 changes: 2 additions & 0 deletions lib/yagu/repos/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ func IndexModule(module, version string) error {
fmt.Println("IndexModule:", module, version)
fmt.Println(" ", domain, owner, repo, version)

/*
switch domain {
case "github.com":
default:
// Assume git
}
*/

return nil
}

0 comments on commit 7b2808b

Please sign in to comment.