diff --git a/go.mod b/go.mod index 0e6dd5f..73466a2 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/mattn/go-sqlite3 v1.14.9 // indirect github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 // indirect - github.com/tyzbit/go-archive v0.0.0-20230206195843-20514a4efc44 // indirect + github.com/tyzbit/go-archive v0.0.0-20230206214528-8c7d3d901b0f // indirect github.com/ugorji/go/codec v1.1.7 // indirect golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect diff --git a/go.sum b/go.sum index eb6c673..427d89b 100644 --- a/go.sum +++ b/go.sum @@ -77,6 +77,8 @@ github.com/tyzbit/go-archive v0.0.0-20230206193458-f613421690a2 h1:adhdKsU62u6V5 github.com/tyzbit/go-archive v0.0.0-20230206193458-f613421690a2/go.mod h1:D8vNUS0ZU4ILov2Igxw1h+Kj7aeyapjUU1ruPLEx9gw= github.com/tyzbit/go-archive v0.0.0-20230206195843-20514a4efc44 h1:eFnPPxL7hFNDJ+EKmW6OTk8MEr5C04+2gKqsP1C10F8= github.com/tyzbit/go-archive v0.0.0-20230206195843-20514a4efc44/go.mod h1:D8vNUS0ZU4ILov2Igxw1h+Kj7aeyapjUU1ruPLEx9gw= +github.com/tyzbit/go-archive v0.0.0-20230206214528-8c7d3d901b0f h1:hH1l6N+2Cgr3/Lh31zifSJW1yHGi5VPojTmAHujq+X4= +github.com/tyzbit/go-archive v0.0.0-20230206214528-8c7d3d901b0f/go.mod h1:D8vNUS0ZU4ILov2Igxw1h+Kj7aeyapjUU1ruPLEx9gw= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= diff --git a/vendor/github.com/tyzbit/go-archive/main.go b/vendor/github.com/tyzbit/go-archive/main.go index 4213126..ee024ea 100644 --- a/vendor/github.com/tyzbit/go-archive/main.go +++ b/vendor/github.com/tyzbit/go-archive/main.go @@ -36,8 +36,8 @@ func GetLatestURL(url string, retryAttempts uint) (archiveUrl string, exists boo resp := http.Response{} // This obliterates the `http` namespace so it must come after // creating the response object. - http := http.Client{} if err := retry.Do(func() error { + http := http.Client{} resp, err := http.Get(archiveApi + "/wayback/available?url=" + url) if err != nil { return fmt.Errorf("error calling wayback api: %w", err) diff --git a/vendor/modules.txt b/vendor/modules.txt index 35f53ac..3402c23 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -84,7 +84,7 @@ github.com/mvdan/xurls # github.com/sirupsen/logrus v1.8.1 ## explicit; go 1.13 github.com/sirupsen/logrus -# github.com/tyzbit/go-archive v0.0.0-20230206195843-20514a4efc44 +# github.com/tyzbit/go-archive v0.0.0-20230206214528-8c7d3d901b0f ## explicit; go 1.18 github.com/tyzbit/go-archive # github.com/ugorji/go/codec v1.1.7