Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

v2 upgrade: is there a suitable alternative to--out-format=github-actions?#5703

Answeredbyldez
jamietanna asked this question inQ&A
Discussion options

Congrats on the massive milestone of v2 and the great work being done 🚀

I'm just getting around to picking up some of the upgrades, and notice that i.e. onoapi-codegen/oapi-codegen#1940 I see:

/home/runner/work/oapi-codegen/oapi-codegen/bin/golangci-lint run ./... --out-format=colored-line-number --timeout=5mError: unknown flag: --out-format

Looking athttps://golangci-lint.run/product/migration-guide/#command-line-flags I don't see an option for GitHub Actions - is it that this was deprecated without a replacement, or maybe that it doesn'tneed a specific output to be picked up accordingly?

Or maybe that using asarif output is the recommended alternative?

You must be logged in to vote
Answered by ldezApr 7, 2025

Hello,

Thank you.


Thegithub-actions format is deprecated since v1.59 (2024-05-26).
And this format is not supported by the GitHub action sincev6.0.0 (2024-05-07)

The GitHub action can parse the default golangci-lint output format (--output.text.path=stdout).

https://github.com/golangci/golangci-lint-action/tree/main?tab=readme-ov-file#problem-matchers


About the "unknown flag: --out-format":

Replies: 2 comments

Comment options

ldez
Apr 7, 2025
Maintainer

Hello,

Thank you.


Thegithub-actions format is deprecated since v1.59 (2024-05-26).
And this format is not supported by the GitHub action sincev6.0.0 (2024-05-07)

The GitHub action can parse the default golangci-lint output format (--output.text.path=stdout).

https://github.com/golangci/golangci-lint-action/tree/main?tab=readme-ov-file#problem-matchers


About the "unknown flag: --out-format":

You must be logged in to vote
0 replies
Answer selected byjamietanna

This comment was marked as off-topic.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@jamietanna@ldez@iamfet

[8]ページ先頭

©2009-2025 Movatter.jp