mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2025-02-17 08:15:55 +00:00
24 lines
851 B
Markdown
24 lines
851 B
Markdown
|
Bulding MailHog
|
||
|
===============
|
||
|
|
||
|
MailHog is built using `make`, and using [this Makefile](Makefile).
|
||
|
|
||
|
If you aren't making any code changes, you can install MailHog using
|
||
|
`go get github.com/ian-kent/Go-MailHog`, since [assets.go](MailHog-UI/assets/assets.go)
|
||
|
is already pre-compiled and committed to this repository.
|
||
|
|
||
|
### Why do I need a Makefile?
|
||
|
|
||
|
MailHog has HTML, CSS and Javascript assets which need to be converted
|
||
|
to a go source file using [go-bindata](https://github.com/jteeuwen/go-bindata).
|
||
|
|
||
|
This must happen before running `go build` or `go install` to avoid compilation
|
||
|
errors (e.g., `no buildable Go source files in MailHog-UI/assets`).
|
||
|
|
||
|
### go generate
|
||
|
|
||
|
The build should be updated to use `go generate` (added in Go 1.4) to
|
||
|
preprocess static assets into go source files.
|
||
|
|
||
|
However, this will break backwards compatibility with Go 1.2/1.3.
|