File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,10 @@ docsgen-openrpc-gateway: docsgen-openrpc-bin
349349
350350.PHONY : docsgen docsgen-md-bin docsgen-openrpc-bin
351351
352- gen : actors-gen type-gen method-gen cfgdoc-gen docsgen api-gen circleci bundle-gen
352+ fiximports :
353+ ./scripts/fiximports
354+
355+ gen : actors-gen type-gen method-gen cfgdoc-gen docsgen api-gen circleci bundle-gen fiximports
353356 @echo " >>> IF YOU'VE MODIFIED THE CLI OR CONFIG, REMEMBER TO ALSO MAKE docsgen-cli"
354357.PHONY : gen
355358
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ go_files () {
4+ find . -type f -name \* .go -not -name \* _cbor_gen.go | grep -v ' ./extern/filecoin-ffi' | grep -v ' ./extern/test-vectors'
5+ }
6+
7+ go_files | xargs -I ' {}' sed -i -e ' /import (/ {
8+ :1
9+ $!N
10+ s/\n\n/\' $' \n ' ' /
11+ /)/!b1
12+ }' ' {}'
13+
14+ go_files | xargs -I ' {}' goimports -w -local " github.com/filecoin-project" ' {}'
15+ go_files | xargs -I ' {}' goimports -w -local " github.com/filecoin-project/lotus" ' {}'
You can’t perform that action at this time.
0 commit comments