mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 06:35:07 +01:00
18 lines
238 B
Bash
18 lines
238 B
Bash
|
#!/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
|