Skip to content

Instantly share code, notes, and snippets.

@HokieGeek
Created July 25, 2019 10:26
Show Gist options
  • Save HokieGeek/8b3e84810e0ce8ca4ed1fe8aa0150ac7 to your computer and use it in GitHub Desktop.
Save HokieGeek/8b3e84810e0ce8ca4ed1fe8aa0150ac7 to your computer and use it in GitHub Desktop.
#!/bin/bash
# go-scan-monorepo.sh $(find . -type d -maxdepth 1 ! -name '.*')
for d in $@; do
pushd $d >/dev/null
go mod init tmp-$(basename $d)
go build .
ls
rm go.mod go.sum >/dev/null
popd >/dev/null
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment