Skip to content

Commit

Permalink
remove go vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
peeweep committed Oct 15, 2024
1 parent c417db0 commit 0f6db08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,10 @@ jobs:
P: ${{ inputs.P }}
WORKDIR: ${{ inputs.WORKDIR }}
run: |
git tag ${P} -m "${P}-deps.tar.xz ${P}-vendor.tar.xz"
git tag ${P} -m "${P}-deps.tar.xz"
cd "input/${WORKDIR}"
GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
tar --create --auto-compress --file /tmp/${P}-deps.tar.xz go-mod
if [ ! -f go.work ]; then
rm -rf go-mod
go mod vendor -modcacherw -o ${P}/vendor
tar --create --auto-compress --file /tmp/${P}-vendor.tar.xz ${P}/vendor
fi
- name: Generate javascript node_modules
if: inputs.LANG == 'javascript'
Expand Down Expand Up @@ -124,7 +119,6 @@ jobs:
with:
files: |
/tmp/${{ inputs.P }}-deps.tar.xz
/tmp/${{ inputs.P }}-vendor.tar.xz
tag_name: ${{ inputs.P }}

- name: upload javascript deps to release artifaces
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ You can use this workflow generate gentoo deps tarball

Support:

- Golang: `${P}-deps.tar.xz` and `${P}-vendor.tar.xz`
- Golang: `${P}-deps.tar.xz`
- Javascript: `${P}-node_modules.tar.xz`

How to use this?
Expand Down

0 comments on commit 0f6db08

Please sign in to comment.