mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-15 03:37:52 +08:00
CONTRIBUTING: Document all codegen deps.
This commit is contained in:
parent
acb157d929
commit
f234e65d41
|
@ -6,7 +6,13 @@
|
|||
|
||||
2. Some files are generated from other files. They should be committed into the repository for this package to be go-gettable. Run `go generate ./...` to regenerate them in case you modified the source.
|
||||
|
||||
We use the `stringer` tool in some generation rules. Install with `go get -u golang.org/x/tools/cmd/stringer`.
|
||||
Dependencies of the generation rules:
|
||||
|
||||
* The `stringer` tool: Install with `go get -u golang.org/x/tools/cmd/stringer`;
|
||||
|
||||
* An installed `elvish` in your PATH;
|
||||
|
||||
* Python 2.7 at `/usr/bin/python2.7` (Python scripts should be rewritten in either Go or Elvish).
|
||||
|
||||
3. Always format the code with `goimports` before committing. Run `go get golang.org/x/tools/cmd/goimports` to install `goimports`, and `goimports -w .` to format all golang sources.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user