debian-forge-composer/tools/prepare-source.sh
Lars Karlitski 049969911d tools: add prepare-source.sh
A script that runs various go tools (mod tidy, mod vendor, and fmt for
now).

The idea is that it prepares the source to be ready for master. As such,
running it on master shouldn't modify any files. Make sure of that by
adding a test.
2020-02-17 16:09:17 +01:00

7 lines
60 B
Bash
Executable file

#!/bin/sh
set -eux
go fmt ./...
go mod tidy
go mod vendor