From 382f10af6d337e3bd73266e55d580aab59772e27 Mon Sep 17 00:00:00 2001 From: Young Xu Date: Sun, 22 Dec 2024 22:19:03 +0800 Subject: [PATCH] fix: change download link to hostself Signed-off-by: Young Xu --- go.mod | 4 ++-- go.sum | 4 ++-- utils.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index aee6bed..f823cb7 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module gitter.top/apps/ja -go 1.20 +go 1.22 require ( github.com/spf13/cobra v1.8.1 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 ) require ( diff --git a/go.sum b/go.sum index 4353b61..c25920b 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,8 @@ github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/utils.go b/utils.go index e70d6a4..3c5b777 100644 --- a/utils.go +++ b/utils.go @@ -36,7 +36,7 @@ func DownloadJaNetfilter() { homeDir := GetWorkDir() filename := filepath.Join(homeDir, "ja-netfilter-2022.2.0.zip") if _, err := os.Stat(filename); os.IsNotExist(err) { - url := "https://gitee.com/ja-netfilter/ja-netfilter/releases/download/2022.2.0/ja-netfilter-2022.2.0.zip" + url := "https://gitee.com/xuthus5/ja-netfilter/releases/download/v1.0.0/ja-netfilter.zip" err := downloadFile(url, filename) if err != nil { panic("download ja-netfilter failed: " + err.Error())