mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
c568ba9fa2
This commit adds `tidy-module` and `tidy-module-check` to make sure the modules are always tidy.
18 lines
238 B
Bash
Executable File
18 lines
238 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SUBMODULES=$(find . -mindepth 2 -name "go.mod" | cut -d'/' -f2)
|
|
|
|
|
|
# Run 'go mod tidy' for root.
|
|
go mod tidy
|
|
|
|
# Run 'go mod tidy' for each module.
|
|
for submodule in $SUBMODULES
|
|
do
|
|
pushd $submodule
|
|
|
|
go mod tidy
|
|
|
|
popd
|
|
done
|