Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
malikshi authored Dec 1, 2023
1 parent c2451ad commit 5e21b0f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
7 changes: 0 additions & 7 deletions sing-geosite/go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
module sing-geosite

go 1.18

require (
github.com/google/go-github/v45 v45.2.0
github.com/sagernet/sing v0.2.18-0.20231129075305-eb56a60214be
github.com/sagernet/sing-box v1.6.8-0.20231129123339-5a56487cf544
github.com/v2fly/v2ray-core/v5 v5.12.1
github.com/sirupsen/logrus
google.golang.org/protobuf v1.31.0
)

Expand All @@ -24,9 +22,4 @@ require (
golang.org/x/net v0.18.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/tools v0.15.0 // indirect
go4.org/intern v0.0.0-20220617035311-6925f38cc365 // indirect
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 // indirect
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect
inet.af/netaddr v0.0.0-20220617031823-097006376321 // indirect
)
2 changes: 0 additions & 2 deletions sing-geosite/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg=
golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ=
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=
golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
Expand Down
5 changes: 2 additions & 3 deletions sing-geosite/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (

"github.com/google/go-github/v45/github"
"github.com/sagernet/sing-box/log"
"github.com/sirupsen/logrus"
"github.com/v2fly/v2ray-core/v5/app/router/routercommon"
"google.golang.org/protobuf/proto"
)
Expand Down Expand Up @@ -48,7 +47,7 @@ func fetch(from string) (*github.RepositoryRelease, error) {
}

func get(downloadURL *string) ([]byte, error) {
logrus.Info("download ", *downloadURL)
log.Info("download ", *downloadURL)
response, err := http.Get(*downloadURL)
if err != nil {
return nil, err
Expand Down Expand Up @@ -255,6 +254,6 @@ func release(source string, destination string, output string, ruleSetOutput str
func main() {
err := release("malikshi/v2ray-rules-dat", "malikshi/sing-geosite", "geosite.db", "rule-set-geosite")
if err != nil {
logrus.Fatal(err)
log.Fatal(err)
}
}

0 comments on commit 5e21b0f

Please sign in to comment.