From 2968ae8087d3e46dffb8df1724278a3a92139bd4 Mon Sep 17 00:00:00 2001 From: Daniel <24758309+leedaniil@users.noreply.github.com> Date: Mon, 13 Dec 2021 21:29:16 +0300 Subject: [PATCH] Update CI fixers (#16549) * Update fix-dryrun.yml * Update assets-go-libs version --- .github/assets.config.yaml | 2 +- .github/workflows/fix-dryrun.yml | 1 + cmd/main.go | 6 +++--- go.mod | 2 +- go.sum | 10 ++-------- 5 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/assets.config.yaml b/.github/assets.config.yaml index 69ca7c528..849d31a8a 100644 --- a/.github/assets.config.yaml +++ b/.github/assets.config.yaml @@ -1,5 +1,5 @@ app: - log_level: info + log_level: debug client_urls: binance: diff --git a/.github/workflows/fix-dryrun.yml b/.github/workflows/fix-dryrun.yml index c0ad2c120..ba57fae16 100644 --- a/.github/workflows/fix-dryrun.yml +++ b/.github/workflows/fix-dryrun.yml @@ -21,6 +21,7 @@ jobs: - name: Show fix result (diff) run: | + git config core.ignorecase false git status git diff diff --git a/cmd/main.go b/cmd/main.go index 433ddf551..6c0eb1f2a 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -23,7 +23,7 @@ func main() { log.WithError(err).Fatal("failed to load file structure") } - fileStorage := file.NewService() + fileStorage := file.NewService(paths...) validatorsService := core.NewService(fileStorage) assetfsProcessor := processor.NewService(fileStorage, validatorsService) @@ -35,11 +35,11 @@ func main() { case "updater-auto": err = assetfsProcessor.RunUpdateAuto() default: - log.Error("Nothing to launch. Use --script flag to choose a script to run.") + log.Info("Nothing to launch. Use --script flag to choose a script to run.") } if err != nil { - log.WithError(err).Error() + log.WithError(err).Fatal("Script failed") } } diff --git a/go.mod b/go.mod index c778b69a2..7c02d3c4b 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/sirupsen/logrus v1.8.1 - github.com/trustwallet/assets-go-libs v0.0.12-0.20211211200802-4ccd693c8b08 + github.com/trustwallet/assets-go-libs v0.0.12 ) require ( diff --git a/go.sum b/go.sum index b4bc8ae2d..f329883fc 100644 --- a/go.sum +++ b/go.sum @@ -272,14 +272,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/trustwallet/assets-go-libs v0.0.12-0.20211210154426-b38f9a1b5ad5 h1:YSRZYJq5cYa58ZWbjqaJL0LASrx0kbCkjF68lf0lIac= -github.com/trustwallet/assets-go-libs v0.0.12-0.20211210154426-b38f9a1b5ad5/go.mod h1:ap6mIFsVjpRI8lXS1UX9/xAwJgaXGm9BHDxAxkQHkFc= -github.com/trustwallet/assets-go-libs v0.0.12-0.20211211195553-bf00b6d5a687 h1:eeBJ06PPaybsyG+kIJ1gSDgCUnRROcQor1XAX7ZtxiY= -github.com/trustwallet/assets-go-libs v0.0.12-0.20211211195553-bf00b6d5a687/go.mod h1:ap6mIFsVjpRI8lXS1UX9/xAwJgaXGm9BHDxAxkQHkFc= -github.com/trustwallet/assets-go-libs v0.0.12-0.20211211195751-c5d6cf4e6b74 h1:A1w3epAenNWpY3eO/cGAObLhbHBJ9EWutBYk4Ox3VtY= -github.com/trustwallet/assets-go-libs v0.0.12-0.20211211195751-c5d6cf4e6b74/go.mod h1:ap6mIFsVjpRI8lXS1UX9/xAwJgaXGm9BHDxAxkQHkFc= -github.com/trustwallet/assets-go-libs v0.0.12-0.20211211200802-4ccd693c8b08 h1:rWCyIa7S0nLZQIGbiWkJ0F018VD2lJ/AzAs8wzaFAyc= -github.com/trustwallet/assets-go-libs v0.0.12-0.20211211200802-4ccd693c8b08/go.mod h1:ap6mIFsVjpRI8lXS1UX9/xAwJgaXGm9BHDxAxkQHkFc= +github.com/trustwallet/assets-go-libs v0.0.12 h1:z4Rl4bxT68bDgVWupbSetbmLIXgMUgs7jzYw5u9QnXU= +github.com/trustwallet/assets-go-libs v0.0.12/go.mod h1:pRox1gBiF5G8TPP4s4WbvEjWq1EOSP6twFLa3KgfWvY= github.com/trustwallet/go-libs v0.2.20 h1:pYstFNgsc7CVyVeYt5GHsMa0JNQHJVRvPQqMvXMpCtY= github.com/trustwallet/go-libs v0.2.20/go.mod h1:7QdAp1lcteKKI0DYqGoaO8KO4eTNYjGmg8vHy0YXkKc= github.com/trustwallet/go-primitives v0.0.17 h1:1fBxZMKGCHdHtgdUzsqdFlD21+1GneIk/sxN6jxYBds=