From 70435aa4a07845f87fbdf097372200dc2d912c1d Mon Sep 17 00:00:00 2001 From: lukaszcl <120112546+lukaszcl@users.noreply.github.com> Date: Fri, 9 Aug 2024 12:24:33 +0200 Subject: [PATCH] Fix lint --- integration-tests/go.mod | 2 +- integration-tests/testconfig/testconfig.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/integration-tests/go.mod b/integration-tests/go.mod index 66b0effcc..07a4e53b7 100644 --- a/integration-tests/go.mod +++ b/integration-tests/go.mod @@ -13,7 +13,6 @@ require ( github.com/google/uuid v1.6.0 github.com/lib/pq v1.10.9 github.com/pelletier/go-toml/v2 v2.2.2 - github.com/pkg/errors v0.9.1 github.com/rs/zerolog v1.31.0 github.com/smartcontractkit/chainlink-common v0.2.2-0.20240805160614-501c4f40b98c github.com/smartcontractkit/chainlink-solana v1.1.0 @@ -330,6 +329,7 @@ require ( github.com/peterbourgon/diskv v2.0.1+incompatible // indirect github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect + github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/prometheus/alertmanager v0.26.0 // indirect diff --git a/integration-tests/testconfig/testconfig.go b/integration-tests/testconfig/testconfig.go index 827bb8f6b..4f7ba0ed7 100644 --- a/integration-tests/testconfig/testconfig.go +++ b/integration-tests/testconfig/testconfig.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/pkg/errors" + "errors" "github.com/barkimedes/go-deepcopy" "github.com/google/uuid" @@ -561,13 +561,13 @@ func GetConfig(configurationName string, product Product) (TestConfig, error) { logger.Info().Msg("Loading config values from default ~/.testsecrets env file") err = ctf_config.LoadSecretEnvsFromFiles() if err != nil { - return TestConfig{}, errors.Wrapf(err, "error reading test config values from ~/.testsecrets file") + return TestConfig{}, fmt.Errorf("error reading test config values from ~/.testsecrets file: %w", err) } logger.Info().Msg("Reading values from environment variables") err = testConfig.ReadFromEnvVar() if err != nil { - return TestConfig{}, errors.Wrapf(err, "error reading test config values from env vars") + return TestConfig{}, fmt.Errorf("error reading test config values from env vars: %w", err) } logger.Debug().Msg("Validating test config")