Skip to content

Commit

Permalink
fixup: fix for review
Browse files Browse the repository at this point in the history
Signed-off-by: 170210 <j170210@icloud.com>
  • Loading branch information
170210 committed Aug 2, 2023
1 parent a45bc30 commit e9c5da9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ jobs:

- name: Check generated error docs
run: |
cd ./tools/error_doc
go run ./
make error-doc
if ! git diff --stat --exit-code ; then
echo ">> ERROR:"
echo ">>"
echo ">> Error documents require update (source files in x folder may have changed)."
echo ">> Ensure your tools are up-to-date, re-run 'go run ./' in tools/error_doc and update this PR."
echo ">> Ensure your tools are up-to-date, re-run 'make error-doc' and update this PR."
echo ">>"
exit 1
fi
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,10 @@ libsodium:
fi
.PHONY: libsodium

error-doc:
cd ./tools/error_doc && go run ./
.PHONY: error-doc

###############################################################################
### release ###
###############################################################################
Expand Down
5 changes: 5 additions & 0 deletions tools/error_doc/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/Finschia/finschia-sdk/tools/error_doc

go 1.20

require golang.org/x/text v0.11.0
2 changes: 2 additions & 0 deletions tools/error_doc/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4=
golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
2 changes: 2 additions & 0 deletions x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ Here are some production-grade modules that can be used in Cosmos SDK applicatio
- [Upgrade](upgrade/spec/README.md) - Software upgrades handling and coordination.

To learn more about the process of building modules, visit the [building modules reference documentation](../docs/building-modules/README.md).

To learn more about the error information of modules, visit the [error documentation](./ERRORS.md).

0 comments on commit e9c5da9

Please sign in to comment.