Skip to content

kisom/glitch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

glitch

Continuously and automatically, build, test, vet and install your go package.

Status

This was written quickly, and without tests. I was also learning how to use the fsnotify package. There are some fundamental / obvious race conditions in the current version, however it's working well in practice, so I'm not worrying about it for now.

Use at your own risk, but let me know if it's abusing your system somehow.

Installation

go get -u github.com/levicook/glitch
go install github.com/levicook/glitch

Usage

Make sure $GOPATH/bin is on your PATH, then simply:

cd <your go package>
glitch

Behavior

glitch will go build, go vet ./..., go test ./... and go install your go package. If any one of these steps fail, it stops on that step, and waits for you to fix the issue.

When things go well, your output should look like this:

2013/09/15 20:38:07 glitch: building
2013/09/15 20:38:07 glitch: build OK - vetting
2013/09/15 20:38:07 glitch: vet OK - testing
?       github.com/levicook/glitch      [no test files]
2013/09/15 20:38:07 glitch: test OK - installing
2013/09/15 20:38:08 glitch: install OK - wating for next build event

When something fails, like go build, you'll see less output. eg:

2013/09/15 20:42:57 glitch: building
# github.com/levicook/glitch
./main.go:83: syntax error: unexpected semicolon or newline, expecting )

There's nothing generic about this tool. It encapsulates a specific workflow and only pays attention to .go files. If you want something different, use something totally generic like guard. You're welcome to fork this, but I am unlikely to merge pull requests looking for a different and/or pluggable behavior.

About

Continuously and automatically, build, test, vet and install your go package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%