shanev / cosmos-gen Goto Github PK
View Code? Open in Web Editor NEWUtility for generating code for @cosmos SDK modules
License: Apache License 2.0
Utility for generating code for @cosmos SDK modules
License: Apache License 2.0
The default (all) make target fails:
$ make
--> Checking deps
go mod download
go: finding github.com/jinzhu/inflection v0.0.0-20180308033659-04140366298a
go: finding github.com/gobuffalo/packr v1.25.0
go: finding github.com/gobuffalo/packr/v2 v2.1.0
go: finding github.com/gobuffalo/packd v0.0.0-20190315124812-a385830c7fc0
go: finding github.com/gobuffalo/envy v1.7.0
go: finding golang.org/x/sync v0.0.0-20190412183630-56d357773e84
go: finding github.com/gobuffalo/envy v1.6.15
go: finding github.com/markbates/safe v1.0.1
go: finding github.com/rogpeppe/go-internal v1.3.0
go: finding github.com/gobuffalo/gogen v0.0.0-20190315121717-8f38393713f5
go: finding github.com/gobuffalo/genny v0.0.0-20190403191548-3ca520ef0d9e
go: finding github.com/gobuffalo/logger v0.0.0-20190315122211-86e12af44bc2
go: finding github.com/markbates/oncer v0.0.0-20181203154359-bf2de49a0be2
go: finding github.com/sirupsen/logrus v1.4.1
go: finding github.com/karrick/godirwalk v1.8.0
go: finding github.com/rogpeppe/go-internal v1.1.0
go: finding github.com/gobuffalo/syncx v0.0.0-20190224160051-33c29581e754
go: finding golang.org/x/tools v0.0.0-20190404132500-923d25813098
go: finding github.com/joho/godotenv v1.3.0
go: finding github.com/gobuffalo/packr/v2 v2.0.9
go: finding github.com/gobuffalo/mapi v1.0.2
go: finding github.com/gobuffalo/attrs v0.0.0-20190224210810-a9411de4debd
go: finding github.com/gobuffalo/depgen v0.0.0-20190329151759-d478694a28d3
go: finding github.com/gobuffalo/gitgen v0.0.0-20190315122116-cc086187d211
go: finding github.com/gobuffalo/flect v0.1.1
go: finding gopkg.in/errgo.v2 v2.1.0
go: finding github.com/rogpeppe/go-internal v1.2.2
go: finding golang.org/x/tools v0.0.0-20190329151228-23e29df326fe
go: finding github.com/gobuffalo/mapi v1.0.1
go: finding github.com/sirupsen/logrus v1.4.0
go: finding github.com/gobuffalo/genny v0.0.0-20190329151137-27723ad26ef9
go: finding github.com/gobuffalo/flect v0.1.0
go: finding golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
--> Running golangci
golangci-lint run --verbose
INFO [config_reader] Config search paths: [./ /Users/aleksbez/Desktop/cosmos-gen /Users/aleksbez/Desktop /Users/aleksbez /Users /]
INFO [lintersdb] Active 10 linters: [deadcode errcheck gosimple govet ineffassign staticcheck structcheck typecheck unused varcheck]
INFO [lintersdb] Optimized sublinters [staticcheck gosimple unused] into metalinter megacheck
INFO [loader] Go packages loading at mode load deps types and syntax took 2.477022329s
INFO [loader] SSA repr building timing: packages building 30.566074ms, total 250.644166ms
INFO [runner] worker.3 took 1.742587ms with stages: varcheck: 817.205µs, errcheck: 772.912µs, deadcode: 94.305µs, structcheck: 43.739µs, typecheck: 2.226µs
INFO [runner] worker.2 took 2.970351ms with stages: ineffassign: 2.966201ms
INFO [runner] worker.4 took 128.953798ms with stages: govet: 128.948048ms
INFO [runner] worker.1 took 872.546455ms with stages: megacheck: 872.5231ms
INFO [runner] Workers idle times: #2: 869.158238ms, #3: 870.605792ms, #4: 743.320903ms
INFO [runner] processing took 7.857µs with stages: max_same_issues: 4.049µs, skip_dirs: 569ns, nolint: 444ns, autogenerated_exclude: 373ns, cgo: 342ns, path_prettifier: 282ns, max_from_linter: 270ns, path_shortener: 215ns, identifier_marker: 212ns, skip_files: 171ns, exclude-rules: 165ns, exclude: 163ns, source_code: 159ns, replacement_builder: 141ns, diff: 133ns, uniq_by_line: 95ns, max_per_file_from_linter: 74ns
INFO File cache stats: 0 entries of total size 0B
INFO Memory: 37 samples, avg is 225.0MB, max is 542.4MB
INFO Execution took 3.781802444s
packr build -o ./bin/cosmos-gen *.go
/bin/sh: packr: command not found
make: *** [build] Error 127
// Logger returns a module-specific logger.
func (keeper Keeper) Logger(ctx sdk.Context) log.Logger {
return ctx.Logger().With("module", types.ModuleName)
}
Inside of a forked cosmos-sdk? inside of a forked gaia? or?
Take a look at cosmos/cosmos-sdk#4438 for the general pattern we're aiming for with regards to modules! Let me know your thoughts on this, but this is the pattern we're going for with modules.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.