Move to more standard Go project structure
This commit is contained in:
parent
2f4c22bb39
commit
0e424d0a70
6
Makefile
6
Makefile
@ -1,11 +1,11 @@
|
||||
OUT := $(notdir $(realpath .))
|
||||
PKG := stuvel.eu/flamenco-test/goja
|
||||
OUT := flamenco-goja-poc
|
||||
PKG := stuvel.eu/flamenco-test/goja/cmd/flamenco-goja-poc
|
||||
VERSION := $(shell git describe --tags --dirty --always)
|
||||
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
|
||||
STATIC_OUT := ${OUT}-${VERSION}
|
||||
PACKAGE_PATH := dist/${OUT}-${VERSION}
|
||||
|
||||
LDFLAGS := -X ${PKG}/appinfo.ApplicationVersion=${VERSION}
|
||||
LDFLAGS := -X stuvel.eu/flamenco-test/goja/internal/appinfo.ApplicationVersion=${VERSION}
|
||||
BUILD_FLAGS = -ldflags="${LDFLAGS}"
|
||||
|
||||
ifndef PACKAGE_PATH
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"github.com/mattn/go-colorable"
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
"stuvel.eu/flamenco-test/goja/appinfo"
|
||||
"stuvel.eu/flamenco-test/goja/job_compilers"
|
||||
"stuvel.eu/flamenco-test/goja/internal/appinfo"
|
||||
"stuvel.eu/flamenco-test/goja/internal/job_compilers"
|
||||
)
|
||||
|
||||
func main() {
|
BIN
flamenco-goja-poc
Executable file
BIN
flamenco-goja-poc
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user