Skip to content

Commit d96e1a9

Browse files
authored
chore: update deps (#86)
* chore: update deps * deps: replace argv with mvdan.cc/sh/v3
1 parent 2622559 commit d96e1a9

File tree

7 files changed

+782
-671
lines changed

7 files changed

+782
-671
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM golang:1.10 AS build-env
1+
FROM golang:1.23 AS build-env
22
# The GOPATH in the image is /go.
33
ADD . /go/src/github.com/sjtug/lug
44
WORKDIR /go/src/github.com/sjtug/lug
55
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
66
RUN dep ensure
77
RUN go build github.com/sjtug/lug/cli/lug
88

9-
FROM debian:9
9+
FROM debian:12
1010
WORKDIR /app
1111
COPY --from=build-env /go/src/github.com/sjtug/lug/lug /app/
1212
ENTRYPOINT ["./lug"]

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ logstashaddr: "172.0.0.4:6000" # TCP Address of logstash. empty means no logstas
2424
dummy: # place your anchor here!
2525
common_interval: &common_interval
2626
interval: 3600
27+
common_retry: &commone_retry
28+
retry: 3
2729
repos:
2830
- type: shell_script
2931
script: rsync -av rsync://rsync.chiark.greenend.org.uk/ftp/users/sgtatham/putty-website-mirror/ /tmp/putty
@@ -33,7 +35,7 @@ repos:
3335
- type: external
3436
name: ubuntu
3537
proxy_to: http://ftp.sjtu.edu.cn/ubuntu/
36-
<<: *common_interval
38+
<<: [*common_interval, *common_retry] # use array for importing multiple anchors
3739
# You can add more repos here, different repos may have different worker types,
3840
# refer to Worker Types section for detailed explanation
3941
```
@@ -42,7 +44,7 @@ repos:
4244

4345
Contributors should push to their own branch. Reviewed code will be merged to `master` branch.
4446

45-
Currently this project assumes Go >= 1.8.
47+
Currently this project assumes Go >= 1.23.
4648

4749
1. set your `GOPATH` to a directory: `export GOPATH=/home/go`. Set `$GOPATH/bin` to your `$PATH`: `export PATH=$PATH:$GOPATH/bin`
4850
2. `go get github.com/sjtug/lug`

cli/lug/license.go

+639-486
Large diffs are not rendered by default.

go.mod

+36-30
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,42 @@
11
module github.com/sjtug/lug
22

3-
go 1.15
3+
go 1.23.0
4+
5+
toolchain go1.23.7
6+
7+
require (
8+
github.com/ant0ine/go-json-rest v3.3.2+incompatible
9+
github.com/cheshir/logrustash v0.0.0-20230213210745-aca6961b250d
10+
github.com/davecgh/go-spew v1.1.1
11+
github.com/dustin/go-humanize v1.0.1
12+
github.com/prometheus/client_golang v1.21.1
13+
github.com/sirupsen/logrus v1.9.3
14+
github.com/spf13/pflag v1.0.6
15+
github.com/spf13/viper v1.20.0
16+
github.com/stretchr/testify v1.10.0
17+
mvdan.cc/sh/v3 v3.11.0
18+
)
419

520
require (
6-
github.com/BurntSushi/toml v0.3.1 // indirect
7-
github.com/ant0ine/go-json-rest v3.3.2-0.20160607055910-3a807d6d8d36+incompatible
8-
github.com/beorn7/perks v0.0.0-20160804104726-4c0e84591b9a // indirect
9-
github.com/cheshir/logrustash v0.0.0-20180131101810-4729f73fb7d4
10-
github.com/cosiner/argv v0.0.0-20170225145430-13bacc38a0a5
11-
github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2
12-
github.com/dustin/go-humanize v0.0.0-20160721065113-2fcb5204cdc6
13-
github.com/hashicorp/hcl v0.0.0-20171017181929-23c074d0eceb // indirect
14-
github.com/magiconair/properties v1.7.5-0.20171031211101-49d762b9817b // indirect
15-
github.com/mattn/goveralls v0.0.7 // indirect
16-
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
17-
github.com/mitchellh/mapstructure v0.0.0-20180203102830-a4e142e9c047 // indirect
18-
github.com/onsi/ginkgo v1.14.2 // indirect
19-
github.com/onsi/gomega v1.10.4 // indirect
20-
github.com/pelletier/go-toml v1.1.0 // indirect
21+
github.com/beorn7/perks v1.0.1 // indirect
22+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
23+
github.com/fsnotify/fsnotify v1.8.0 // indirect
24+
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
25+
github.com/klauspost/compress v1.18.0 // indirect
26+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
27+
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
2128
github.com/pmezard/go-difflib v1.0.0 // indirect
22-
github.com/prometheus/client_golang v0.9.0-pre1
23-
github.com/prometheus/client_model v0.0.0-20171117100541-99fa1f4be8e5 // indirect
24-
github.com/prometheus/common v0.0.0-20180110214958-89604d197083 // indirect
25-
github.com/prometheus/procfs v0.0.0-20180125133057-cb4147076ac7 // indirect
26-
github.com/sirupsen/logrus v1.0.5-0.20180228220133-f4ee69125072
27-
github.com/spf13/afero v1.0.3-0.20180211162714-bbf41cb36dff // indirect
28-
github.com/spf13/cast v1.1.0 // indirect
29-
github.com/spf13/jwalterweatherman v0.0.0-20180109140146-7c0cea34c8ec // indirect
30-
github.com/spf13/pflag v1.0.0
31-
github.com/spf13/viper v1.0.0
32-
github.com/stretchr/testify v1.1.4-0.20160615092844-d77da356e56a
33-
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
34-
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
35-
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 // indirect
29+
github.com/prometheus/client_model v0.6.1 // indirect
30+
github.com/prometheus/common v0.63.0 // indirect
31+
github.com/prometheus/procfs v0.16.0 // indirect
32+
github.com/sagikazarmark/locafero v0.8.0 // indirect
33+
github.com/sourcegraph/conc v0.3.0 // indirect
34+
github.com/spf13/afero v1.14.0 // indirect
35+
github.com/spf13/cast v1.7.1 // indirect
36+
github.com/subosito/gotenv v1.6.0 // indirect
37+
go.uber.org/multierr v1.11.0 // indirect
38+
golang.org/x/sys v0.31.0 // indirect
39+
golang.org/x/text v0.23.0 // indirect
40+
google.golang.org/protobuf v1.36.5 // indirect
41+
gopkg.in/yaml.v3 v3.0.1 // indirect
3642
)

0 commit comments

Comments
 (0)