Skip to content

Commit

Permalink
api/docgen,build/openrpc: maybe fix no such file error and run 'make …
Browse files Browse the repository at this point in the history
…docsgen'

Date: 2021-01-19 12:55:52-06:00
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Jan 19, 2021
1 parent 7686435 commit 7b7cd4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ func ParseApiASTInfo(apiFile, iface string) (map[string]string, map[string]strin
fset := token.NewFileSet()
apiDir, err := filepath.Abs("./api")
if err != nil {
fmt.Println("filepath absolute error: ", err)
fmt.Println("./api filepath absolute error: ", err)
}
apiFile, err = filepath.Abs(apiFile)
if err != nil {
fmt.Println("filepath absolute error: ", err, "file:", apiFile)
}
pkgs, err := parser.ParseDir(fset, apiDir, nil, parser.AllErrors|parser.ParseComments)
if err != nil {
Expand Down
Binary file modified build/openrpc/miner.json.gz
Binary file not shown.
Binary file modified build/openrpc/worker.json.gz
Binary file not shown.

0 comments on commit 7b7cd4f

Please sign in to comment.