Move to more standard Go project structure

This commit is contained in:
Sybren A. Stüvel 2022-01-04 13:54:54 +01:00 committed by Sybren A. Stüvel
parent 2f4c22bb39
commit 0e424d0a70
11 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

Binary file not shown.