fix the action error with no go.sum file

Signed-off-by: zhzhuang-zju <m17799853869@163.com>
This commit is contained in:
zhzhuang-zju 2024-05-06 17:29:01 +08:00
parent c7c8f49396
commit ddccefe388
1 changed files with 1 additions and 8 deletions

View File

@ -34,20 +34,13 @@ jobs:
codegen:
name: codegen
runs-on: ubuntu-22.04
env:
GOPATH: ${{ github.workspace }}
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada
steps:
- name: checkout code
uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada/go.mod
go-version-file: go.mod
- name: Install Protoc
uses: arduino/setup-protoc@v3
with: