forked from osmosis-labs/osmosis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
makefile: add target to run
go mod tidy
in all submodules (osmosis-…
…labs#6535) * add script * global go mod tidy rule makefile * add run result * update changelog * remove unnecessary echo to reduce size of logs emitted * tidy workspace after main merge --------- Co-authored-by: devbot-wizard <[email protected]>
- Loading branch information
1 parent
57d5923
commit 3db3efd
Showing
7 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Read each line from go.work and extract submodule path | ||
awk '/^use / {print substr($0, 5)}' go.work | while read -r submodule; do | ||
# Change directory to the submodule | ||
if cd "$submodule"; then | ||
# Run go mod tidy | ||
go mod tidy | ||
if [ $? -eq 0 ]; then | ||
echo "Successfully ran go mod tidy in $submodule" | ||
else | ||
echo "Failed to run go mod tidy in $submodule" | ||
fi | ||
# Change back to the original directory | ||
cd - > /dev/null | ||
else | ||
echo "Failed to enter $submodule, skipping." | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters