go-toolbox/scripts/workers/gofumpt.sh

13 lines
215 B
Bash
Raw Permalink Normal View History

2024-05-04 13:18:37 +05:00
#!/bin/bash
2024-09-21 23:59:52 +05:00
gofumpt_version="0.7.0"
2024-05-04 13:18:37 +05:00
set -xe
cd /tmp
git clone https://github.com/mvdan/gofumpt.git
cd gofumpt || exit 1
git checkout "v${gofumpt_version}"
go build -o /usr/local/bin/gofumpt .
rm -rf /tmp/gofumpt