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

Using the action with multi-module workspaces#873

Unanswered
matthewhughes-uw asked this question inQ&A
Discussion options

Hi, I'm working in a repo that usesmulti-module workspaces and was wondering if there's any support for such a setup with this action?

For some context, to run locally list the local modules (fromgo.work) and pass their paths togolangci-lint run:

go list -m -f '{{.Dir}}' | sed 's|$|/...|g' | xargs golangci-lint run
You must be logged in to vote

Replies: 1 comment

Comment options

I've found a way to do this, for example with a step like:

      -name:'Lint'uses:golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804# v4.0.0with:version:'v1.56.2'args:'-v $(go list -f''{{.Dir}}/...'' -m | xargs)'

Which does the equivalent ofgolangci-lint run -v $(go list -f '{{.Dir}}/...' -m | xargs)

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@matthewhughes-uw@mjlshen

[8]ページ先頭

©2009-2025 Movatter.jp