diff options
| author | Jeff Carr <[email protected]> | 2024-12-13 13:52:35 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-13 13:52:35 -0600 |
| commit | 02bbd75ce1d80f845673c30a004e35f9ce491ab6 (patch) | |
| tree | 191a0e7de7c0866ad106828798580777e351d2c8 | |
| parent | 86f06c84199c1145712c19f7d432fe9e128f0fdb (diff) | |
try to restore first
| -rw-r--r-- | main.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -40,9 +40,10 @@ func main() { // skip restore if --force if !argv.Force { + cname := check.GetCurrentBranchName() // try to restore from the git metadata - if err := check.AutogenRestore(); err != nil { - badExit(err) + if err := check.AutogenRestore(cname); err != nil { + // ignore errors here } if err := check.ValidGoSum(); err == nil { okExit("go.mod and go.sum were restored ok") |
