diff --git a/go.mod b/go.mod index d22804c..ff269fe 100644 --- a/go.mod +++ b/go.mod @@ -22,5 +22,5 @@ require ( golang.org/x/net v0.17.0 // indirect golang.org/x/sys v0.13.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.31.0 // indirect + google.golang.org/protobuf v1.33.0 // indirect ) diff --git a/go.sum b/go.sum index caca225..4a6717b 100644 --- a/go.sum +++ b/go.sum @@ -53,5 +53,7 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/main.go b/main.go index 47ae2fa..1224133 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,7 @@ import ( "github.com/urfave/cli/v2" ) -var version = "20231101" +var version = "20240408" func main() { app := cli.NewApp() diff --git a/package/httpserver.tengo b/package/httpserver.tengo index 2e22107..8531818 100644 --- a/package/httpserver.tengo +++ b/package/httpserver.tengo @@ -18,6 +18,7 @@ if is_error(err) { got := false if nami.os == "darwin" && nami.arch == "arm64" { + got = true err := nami.sh(`curl`, `-L`, `--progress-bar`, `https://github.com/txthinking/httpserver/releases/latest/download/httpserver_darwin_arm64`, `-o`, text.join([nami.cache_dir, "httpserver"], os.path_separator)) if is_error(err) { fmt.println(err) diff --git a/package/nvim.tengo b/package/nvim.tengo index 9073a5b..73ae713 100644 --- a/package/nvim.tengo +++ b/package/nvim.tengo @@ -24,7 +24,7 @@ if is_error(err) { s := "" if nami.os == "linux" && nami.arch == "amd64" { s = "nvim-linux64" - err = nami.sh("sh", "-c", fmt.sprintf(`curl -L --progress-bar https://github.com/neovim/neovim/releases/latest/download/${s}.tar.gz -o /tmp/_.tgz`, s)) + err = nami.sh("sh", "-c", fmt.sprintf(`curl -L --progress-bar https://github.com/neovim/neovim/releases/latest/download/%s.tar.gz -o /tmp/_.tgz`, s)) if is_error(err) { fmt.println(err) os.exit(1)