Continuously go-installs all packages in GOPATH
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
buildid
dedupingchan
.gitignore
LICENSE
README.md
autoinstall.go
getimports.go
package.go
package_build.go
package_state.go
packagestate_string.go
stdpackages.go

README.md

autoinstall

Continuously go-installs all packages in GOPATH.

  • Uses filesystem-monitoring (via howeyc/fsnotify)
  • Parses package imports and recursively kicks off builds whenever dependencies are updated

Quick Start

You must already have Go installed and have GOPATH set in your environment. Then just run:

$ go get -u github.com/tillberg/autoinstall
$ $GOPATH/bin/autoinstall

Use --help to see additional options.

Animated Gif demonstrating autoinstall

Known issues

  • autoinstall expects to find a single package per directory.
  • My github.com/tillberg/watcher utility handles folder creation and deletion all right, but it doesn't currently always handle deleting and re-creating a directory (with the same name as before) correctly.

Automatically restart daemons

I use this in conjunction with autorestart's RestartOnChange, which watches the executable file for changes and restarts the process if it ever does.

License

ISC License