try to restore first
This commit is contained in:
parent
86f06c8419
commit
02bbd75ce1
5
main.go
5
main.go
|
@ -40,9 +40,10 @@ func main() {
|
||||||
|
|
||||||
// skip restore if --force
|
// skip restore if --force
|
||||||
if !argv.Force {
|
if !argv.Force {
|
||||||
|
cname := check.GetCurrentBranchName()
|
||||||
// try to restore from the git metadata
|
// try to restore from the git metadata
|
||||||
if err := check.AutogenRestore(); err != nil {
|
if err := check.AutogenRestore(cname); err != nil {
|
||||||
badExit(err)
|
// ignore errors here
|
||||||
}
|
}
|
||||||
if err := check.ValidGoSum(); err == nil {
|
if err := check.ValidGoSum(); err == nil {
|
||||||
okExit("go.mod and go.sum were restored ok")
|
okExit("go.mod and go.sum were restored ok")
|
||||||
|
|
Loading…
Reference in New Issue