Skip to content

Fix lint workflow warnings and improve error messages #219

@cmainas

Description

@cmainas

It seems there have been some changes in the linter we use in our workflow for Go's code. As a result, the following two warnings show up in every run:

Post golangci-lint
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0dE12aAAAAAD5JL33s3rCSahb0Bd5qQrcRE0yRURHRTA4MTAARWRnZQ==

golangci-lint
Failed to restore: Cache service responded with 400

Furthermore, we need to improve the output of the linter, since it does not show which files require changes or the errors that it found. Sample output:

  Running [/home/runner/golangci-lint-1.64.8-linux-amd64/golangci-lint run --out-format=github-actions] in [] ...
  Error: File is not properly formatted (gofmt)
  Error: File is not properly formatted (gofmt)
  Error: File is not properly formatted (gofmt)

As a reference have a look in this run https://github.com/urunc-dev/urunc/actions/runs/16293499729/job/46008963137

Metadata

Metadata

Assignees

Labels

CIRelated to testingbugSomething isn't working

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions