Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
Signed-off-by: moul <[email protected]>
  • Loading branch information
moul committed Jan 21, 2025
1 parent 92c41eb commit c7414be
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- name: Check generated files are up to date
working-directory: ${{ inputs.modulepath }}
run: |
go generate -x ./...
make generate
if [ "$(git status -s)" != "" ]; then
echo "command 'go generate' creates file that differ from git tree, please run 'go generate' and commit:"
git status -s
Expand Down
6 changes: 5 additions & 1 deletion gno.land/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ install.gnokey:; go install ./cmd/gnokey
.PHONY: dev.gnoweb generate.gnoweb
dev.gnoweb:
make -C ./pkg/gnoweb dev
generate.gnoweb:

.PHONY: generate
generate:
go generate -x ./...
make -C ./pkg/gnoweb generate


.PHONY: fclean
fclean: clean
rm -rf gnoland-data genesis.json
Expand Down
2 changes: 1 addition & 1 deletion gnovm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ _test.filetest:;
# TODO: move _dev.stringer to go:generate instructions, simplify generate
# to just go generate.
.PHONY: generate
generate: _dev.stringer _dev.generate
generate: _dev.stringer _dev.generate fmt imports

stringer_cmd=$(rundep) golang.org/x/tools/cmd/stringer
.PHONY: _dev.stringer
Expand Down
6 changes: 3 additions & 3 deletions gnovm/pkg/gnolang/internal/softfloat/copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cat > runtime_softfloat64.go << EOF
EOF
cat "$GOROOT/src/runtime/softfloat64.go" >> ./runtime_softfloat64.go
sed -i 's/^package runtime$/package softfloat/' runtime_softfloat64.go
sed -i '' 's/^package runtime$/package softfloat/' runtime_softfloat64.go

# softfloat64_test.go:
# - add header
Expand All @@ -25,8 +25,8 @@ cat > runtime_softfloat64_test.go << EOF
EOF
cat "$GOROOT/src/runtime/softfloat64_test.go" >> ./runtime_softfloat64_test.go
sed -i 's/^package runtime_test$/package softfloat_test/
sed -i '' 's/^package runtime_test$/package softfloat_test/
s#^\t\. "runtime"$#\t. "github.com/gnolang/gno/gnovm/pkg/gnolang/internal/softfloat"#
s/GOARCH/runtime.GOARCH/g
16a\
"runtime"' runtime_softfloat64_test.go
"runtime"' runtime_softfloat64_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions tm2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,8 @@ _test.pkg.others:; go test $(GOTEST_FLAGS) `go list ./pkg/... | grep -Ev 'pkg/(
_test.pkg.amino:; go test $(GOTEST_FLAGS) ./pkg/amino/...
_test.pkg.bft:; go test $(GOTEST_FLAGS) ./pkg/bft/...
_test.pkg.db:; go test $(GOTEST_FLAGS) ./pkg/db/... ./pkg/iavl/benchmarks/...

.PHONY: generate
generate:
go generate -x ./...
$(MAKE) fmt
12 changes: 4 additions & 8 deletions tm2/pkg/overflow/overflow_impl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7414be

Please sign in to comment.