From 5175dc2761662e50f1a0182751c585228cd9eb7f Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 16 Jul 2024 12:01:10 +0530 Subject: [PATCH] Pint golangci-lint version in lint workflow --- .gitea/workflows/lint.yml | 4 ++-- cmd/laconicd/cmd/root.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index 82c56a7b..ad21a427 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - uses: golangci/golangci-lint-action@v3.3.1 with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: latest + # Required: the version of golangci-lint is required and must be specified without patch version + version: v1.51 args: --timeout 10m github-token: ${{ secrets.github_token }} diff --git a/cmd/laconicd/cmd/root.go b/cmd/laconicd/cmd/root.go index 14e3f468..b4847145 100644 --- a/cmd/laconicd/cmd/root.go +++ b/cmd/laconicd/cmd/root.go @@ -140,7 +140,8 @@ func ProvideClientContext( // Read the config again to overwrite the default values with the values from the config file clientCtx, _ = config.ReadFromClientConfig(clientCtx) - // Workaround: Unset clientCtx.HomeDir and clientCtx.KeyringDir from depinject clientCtx as they are given precedence over the CLI args (--home flag) in some commands + // Workaround: Unset clientCtx.HomeDir and clientCtx.KeyringDir from depinject clientCtx as they are given precedence over + // the CLI args (--home flag) in some commands // TODO: Implement proper fix clientCtx.HomeDir = "" clientCtx.KeyringDir = ""