Skip to content

Commit

Permalink
skip go mod vendor on go workspace
Browse files Browse the repository at this point in the history
Signed-off-by: jinqiang zhang <[email protected]>
  • Loading branch information
peeweep committed Aug 13, 2024
1 parent db8f667 commit 5150102
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ jobs:
cd "input/${WORKDIR}"
GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
tar --create --auto-compress --file /tmp/${P}-deps.tar.xz go-mod
rm -rf go-mod
go mod vendor
tar --create --auto-compress --file /tmp/${P}-vendor.tar.xz vendor
if [ !-f go.work ]; then
rm -rf go-mod
go mod vendor
tar --create --auto-compress --file /tmp/${P}-vendor.tar.xz vendor
fi
- name: Generate javascript node_modules
if: inputs.LANG == 'javascript'
Expand Down

0 comments on commit 5150102

Please sign in to comment.