Skip to content

Commit

Permalink
fix(go)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Aug 14, 2023
1 parent fbd31f6 commit d3a903f
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions projects/go.dev/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,18 @@ build:
tea.xyz/gx/cc: c99
go.dev: '*'
working-directory: src
script: |-
# `make.bash` complains about unset GOCACHE and HOME otherwise
export GOCACHE="$(pwd)/.gocache"
./make.bash
script:
- ./make.bash

# cleanup
cd ..
rm src/*.{bash,bat,rc}
rm src/Make.dist
if test -d "{{prefix}}"; then
find "{{prefix}}" -mindepth 1 -delete
else
mkdir "{{prefix}}"
fi
mv * "{{prefix}}"
find "{{prefix}}" -mindepth 1 -maxdepth 1 -type f -delete -not -name build.sh
- rm *.{bash,bat,rc} Make.dist
- run: find . -mindepth 1 -delete
working-directory: ${{ prefix }}
- run: mv api bin doc lib misc pkg src test go.env "{{prefix}}"
working-directory: $SRCROOT
env:
# `make.bash` complains about unset GOCACHE and HOME otherwise
GOCACHE: "$SRCROOT/.gocache"
GOROOT_FINAL: ${{ prefix }}
GOROOT_BOOTSTRAP: ${{ deps.go.dev.prefix }}

Expand Down

0 comments on commit d3a903f

Please sign in to comment.