From 2ff058fd64820d8dcff812082132c2306e80db62 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 1 Mar 2018 22:05:53 -0300 Subject: [PATCH] fix: fixed init For some reason when building . instead of main.go, the main_packr.go file was being ignored it seems. Also changed it to run with go generate. refs #591 --- .goreleaser.yml | 5 +++-- main.go | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 358dfbfa2..d5b3e9ea6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,7 @@ builds: - - hooks: - pre: packr + - main: ./main.go + hooks: + pre: go generate env: - CGO_ENABLED=0 goos: diff --git a/main.go b/main.go index b6e8399c6..3e06e9840 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,4 @@ +//go:generate packr package main import (