mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-21 19:56:33 +00:00
go build tweaks
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
GO_PROJECT_NAME := hive
|
||||
|
||||
# Ask Go whether workspace mode is active
|
||||
IN_WORKSPACE := $(shell go env GOWORK)
|
||||
|
||||
ifeq ($(IN_WORKSPACE),off)
|
||||
# Use -mod=mod unless Go reports an active workspace path
|
||||
ifeq ($(IN_WORKSPACE),)
|
||||
GO_BUILD_MOD := -mod=mod
|
||||
else ifeq ($(IN_WORKSPACE),off)
|
||||
GO_BUILD_MOD := -mod=mod
|
||||
else
|
||||
GO_BUILD_MOD :=
|
||||
|
||||
Reference in New Issue
Block a user