Skip to content

ci: fix go linter#7950

Merged
jedevc merged 4 commits into
dagger:mainfrom
jedevc:fix-go-linter
Jul 17, 2024
Merged

ci: fix go linter#7950
jedevc merged 4 commits into
dagger:mainfrom
jedevc:fix-go-linter

Conversation

@jedevc
Copy link
Copy Markdown
Contributor

@jedevc jedevc commented Jul 17, 2024

Noticed in #7872 (comment)

There are two issues:

  • Some errors have an empty "Severity" - not entirely sure why, but some of the code was handling this correctly, but Assert wasn't.
  • The GOLANGCI_LINT_CONFIG doesn't seem to have been being respected, I can't find any reference to it. So we can just use the suggested use of from the docs.

@jedevc jedevc requested a review from shykes July 17, 2024 10:15
Comment thread dev/golangci/lint.go
@shykes shykes requested review from gerhard, helderco and matipan July 17, 2024 12:17
@jedevc jedevc force-pushed the fix-go-linter branch 3 times, most recently from 9f6b1c2 to 041e42a Compare July 17, 2024 13:38
jedevc and others added 4 commits July 17, 2024 16:42
There are two issues:
- Some errors have an empty "Severity" - not entirely sure why, but some
  of the code was handling this correctly, but Assert wasn't.
- The GOLANGCI_LINT_CONFIG doesn't seem to have been being respected, I
  can't find any reference to it. So we can just use the suggested use
  of from the docs.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Solomon Hykes <solomon@dagger.io>
These were missed earlier, because of a misconfiguration in the linting pipeline

Signed-off-by: Solomon Hykes <solomon@dagger.io>
@shykes
Copy link
Copy Markdown
Contributor

shykes commented Jul 17, 2024

I am trying to test this, but golangci-lint just runs and runs, and eventually times out. Can anyone else reproduce?

dagger call \
 -m github.com/dagger/dagger/dev@pull/7950/merge \
 --source https://github.com/dagger/dagger#pull/7950/merge \
 engine \
 lint

@jedevc jedevc merged commit 76859d7 into dagger:main Jul 17, 2024
@jedevc jedevc deleted the fix-go-linter branch July 17, 2024 15:13
@samalba samalba added the kind/bug Something isn't working label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants