diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ebd7f51..6b9ad1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ test-job: lint-job: stage: test - image: golangci/golangci-lint:v1.46 + image: golangci/golangci-lint:v1.52 cache: key: lint-cache paths: diff --git a/internal/watch/watch.go b/internal/watch/watch.go index c0f1583..7e17049 100644 --- a/internal/watch/watch.go +++ b/internal/watch/watch.go @@ -35,7 +35,7 @@ func Watch() cago.Component { func (w *watch) Start(ctx context.Context, cfg *configs.Config) error { config := &Config{} - if err := cfg.Scan("w", config); err != nil { + if err := cfg.Scan("watch", config); err != nil { return err } // 获取记录列表