Skip to content

This PR fixes golangci-lint CI failures caused by unchecked error returns in Go samples.#202

Closed
DARSHAN-R-DARSHAN wants to merge 2 commits intokeploy:mainfrom
DARSHAN-R-DARSHAN:fix/golangci-lint-failures
Closed

This PR fixes golangci-lint CI failures caused by unchecked error returns in Go samples.#202
DARSHAN-R-DARSHAN wants to merge 2 commits intokeploy:mainfrom
DARSHAN-R-DARSHAN:fix/golangci-lint-failures

Conversation

@DARSHAN-R-DARSHAN
Copy link

@DARSHAN-R-DARSHAN DARSHAN-R-DARSHAN commented Feb 10, 2026

Fix: keploy/keploy#3758

What was fixed

  • Properly handled the error returned by sql.Rows.Close() in book-store-inventory to satisfy errcheck.
  • Explicitly handled / ignored the error returned by Logger.Sync() in echo-sql, including the error path before Logger.Fatal.

How this was tested

  • Ran golangci-lint run locally inside:

  • book-store-inventory

  • echo-sql

  • Verified that GitHub Actions CI passes successfully.

Signed-off-by: DARSHAN-R-DARSHAN <darshanramanji07@gmail.com>
Signed-off-by: DARSHAN-R-DARSHAN <darshanramanji07@gmail.com>
@DARSHAN-R-DARSHAN DARSHAN-R-DARSHAN force-pushed the fix/golangci-lint-failures branch from bf7bc4f to afdb0b8 Compare February 10, 2026 15:33
@DARSHAN-R-DARSHAN
Copy link
Author

Hi! @khareyash05, I have fixed the issue.
Would love a quick review when you get a chance — thanks! 🙌

@khareyash05
Copy link
Member

Duplicate #201

@DARSHAN-R-DARSHAN
Copy link
Author

Thanks @khareyash05 for letting me know! I’ll look into another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: fix linter in echo-sql and book-store inventory go apps

2 participants