fixed up some names
This commit is contained in:
parent
9561e45610
commit
52f41adba2
Notes:
Jeff Carr
2025-01-31 13:57:16 -06:00
// `autogen:go.mod` module go.wit.com/apps/go-clone go 1.21 toolchain go1.23.4 require ( go.wit.com/dev/alexflint/arg v1.5.5 go.wit.com/lib/gui/shell v0.22.23 go.wit.com/lib/protobuf/forgepb v0.0.69 go.wit.com/lib/protobuf/gitpb v0.0.70 go.wit.com/log v0.22.10 ) require ( github.com/destel/rill v0.6.0 // indirect github.com/go-cmd/cmd v1.4.3 // indirect go.wit.com/dev/alexflint/scalar v1.2.4 // indirect go.wit.com/lib/protobuf/zoopb v0.0.22 // indirect google.golang.org/protobuf v1.36.4 // indirect ) // `autogen:go.sum` github.com/destel/rill v0.6.0 h1:8MQRzS6k0akKmwNZFahKIhG1dkBeNxMoWKSfOxkaJNw= github.com/destel/rill v0.6.0/go.mod h1:srKuXzvGqINUEGYR5b/iwvW+L9/S35RxVHWGYbXNoO4= github.com/go-cmd/cmd v1.4.3 h1:6y3G+3UqPerXvPcXvj+5QNPHT02BUw7p6PsqRxLNA7Y= github.com/go-cmd/cmd v1.4.3/go.mod h1:u3hxg/ry+D5kwh8WvUkHLAMe2zQCaXd00t35WfQaOFk= github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg= github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= go.wit.com/dev/alexflint/arg v1.5.5 h1:c4jgIb4OvHjnCMRNSjOa1sNLl6WDxV6tIkMVezR9hCk= go.wit.com/dev/alexflint/arg v1.5.5/go.mod h1:nH3F6TJDaAUgnLkC0WgRN/H047YfN1TYKaWPYr6B8lo= go.wit.com/dev/alexflint/scalar v1.2.4 h1:zmBeEkObwz1lcelwfGNYP2GS6SQ9e0tdv7JdHwMZEEk= go.wit.com/dev/alexflint/scalar v1.2.4/go.mod h1:kCNO1Fo5LnnK6+qa+zYhP5fdgfC1C+vx1ti99Md+FAM= go.wit.com/lib/gui/shell v0.22.23 h1:U6Njsme2NU7ntcopcSXHD9bNYZzzeQueSTRB/L1YrgE= go.wit.com/lib/gui/shell v0.22.23/go.mod h1:K6+ULaS8xQFcsi1QoWHY1+PM/vS+IRSyJvbnJF9GyIQ= go.wit.com/lib/protobuf/forgepb v0.0.69 h1:bZIkDFYvDb68kTtBVd1cbt3C9lOxn8ilkUXW6kdixHA= go.wit.com/lib/protobuf/forgepb v0.0.69/go.mod h1:pcLwYi2Ucj0yA4UVguUmhYAtou6xYnxUmHn6jqV9+Bg= go.wit.com/lib/protobuf/gitpb v0.0.70 h1:zyDxvXBtNGiEEOh2I6MFQN3Awvjf/oO0N4waPzZT4G0= go.wit.com/lib/protobuf/gitpb v0.0.70/go.mod h1:zlLM/+9vajrXNVbczpoyYIraLokZ6My47wDgqo9Gobg= go.wit.com/lib/protobuf/zoopb v0.0.22 h1:tAFwRGMepMz+AsEehtwW5mO7ljXspQCcY3qTOT/EgXI= go.wit.com/lib/protobuf/zoopb v0.0.22/go.mod h1:iEec6TXYJjaeShv+vOfCuw/3uWnfm35ongl19T2l0v0= go.wit.com/log v0.22.10 h1:rlSgaYjvxbpcmi9UBQO3ESmbd/jiyFdRQFoGOvpCEUc= go.wit.com/log v0.22.10/go.mod h1:4uNPFBqhsAh8zNF+zxVEmC3c/9AZ8JeTfUUvRpddvLQ= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.36.4 h1:6A3ZDJHn/eNqc1i+IdefRzy/9PokBTPvcqMySR7NNIM= google.golang.org/protobuf v1.36.4/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= // `autogen:`
8
clone.go
8
clone.go
|
@ -108,7 +108,7 @@ func recursiveClone(check *gitpb.Repo) error {
|
|||
|
||||
func makeValidGoSum(check *gitpb.Repo) error {
|
||||
// attempt to grab the notes
|
||||
check.Run([]string{"git", "fetch", "origin", "refs/notes/*:refs/notes/*"})
|
||||
check.RunQuiet([]string{"git", "fetch", "origin", "refs/notes/*:refs/notes/*"})
|
||||
|
||||
if check.ParseGoSum() {
|
||||
return nil
|
||||
|
@ -116,7 +116,7 @@ func makeValidGoSum(check *gitpb.Repo) error {
|
|||
|
||||
log.Info("try running go-mod-clean")
|
||||
// update go.sum and go.mod
|
||||
if err := check.RunStrict([]string{"go-mod-clean"}); err != nil {
|
||||
if _, err := check.RunQuiet([]string{"go-mod-clean"}); err != nil {
|
||||
log.Info("")
|
||||
log.Info("Do you have go-mod-clean? Otherwise:")
|
||||
log.Info(" go install go.wit.com/apps/go-mod-clean@latest")
|
||||
|
@ -131,10 +131,10 @@ func makeValidGoSum(check *gitpb.Repo) error {
|
|||
if err := check.ValidGoSum(); err != nil {
|
||||
cmd := []string{"go", "mod", "init", check.GetGoPath()}
|
||||
log.Info("try running", cmd)
|
||||
if err := check.RunStrict(cmd); err != nil {
|
||||
if _, err := check.RunQuiet(cmd); err != nil {
|
||||
log.Info("go mod init failed", err)
|
||||
}
|
||||
if err := check.RunStrict([]string{"go", "mod", "tidy"}); err != nil {
|
||||
if _, err := check.RunQuiet([]string{"go", "mod", "tidy"}); err != nil {
|
||||
log.Info("go mod tidy failed", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue