Skip to content

Commit 86fa5cf

Browse files
committed
submodules crutch via go.work
Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com>
1 parent e3d6484 commit 86fa5cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs: # example from https://github.com/golangci/golangci-lint-action/tree/main
1919
- uses: actions/setup-go@v5
2020
with:
2121
go-version: ${{ env.GO_VERSION }}
22+
- run: go work init && find . -name go.mod|sed -r 's/(.*)(go.mod)/use \1/g' >> go.work
2223
- id: set-modules
2324
run: echo "modules=$(go list -m -json | jq -s '.' | jq -c '[.[].Dir]')" >> $GITHUB_OUTPUT
2425

0 commit comments

Comments
 (0)