-
Always run unit tests before committing.
makewill take care of this. -
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.Dependencies of the generation rules:
-
The
stringertool: Install withgo get -u golang.org/x/tools/cmd/stringer; -
An installed
elvishin your PATH; -
Python 2.7 at
/usr/bin/python2.7(Python scripts should be rewritten in either Go or Elvish).
-
-
Always format the code with
goimportsbefore committing. Rungo get golang.org/x/tools/cmd/goimportsto installgoimports, andgoimports -w .to format all golang sources.To automate this you can set up a
goimportsfilter for Git by putting this in~/.gitconfig:[filter "goimports"] clean = goimports smudge = catGit will then always run
goimportsfor you before committing, since.gitattributesin this repository refers to this filter. More about Git attributes and filters here.
If you are making significant changes or any user-visible changes (e.g. changes to the language, the UI or the elv script API), please discuss on the developer channel before starting to work.
By contributing, you agree to license your code under the same license as existing source code of elvish. See the LICENSE file.