extract major version in module name and reuse the variable
This commit is contained in:
parent
800e847277
commit
951df37e27
|
@ -1,7 +1,7 @@
|
||||||
COMMENT = command-line access to github pull requests, issues and more
|
COMMENT = command-line access to github pull requests, issues and more
|
||||||
|
|
||||||
V = 2.21.1
|
V = 2.21.1
|
||||||
MODGO_MODNAME = github.com/cli/cli/v2
|
MODGO_MODNAME = github.com/cli/cli/v${V:R:R}
|
||||||
MODGO_VERSION = v${V}
|
MODGO_VERSION = v${V}
|
||||||
|
|
||||||
DISTNAME = cli-${MODGO_VERSION}
|
DISTNAME = cli-${MODGO_VERSION}
|
||||||
|
@ -16,7 +16,7 @@ PERMIT_PACKAGE = Yes
|
||||||
WANTLIB += c pthread
|
WANTLIB += c pthread
|
||||||
|
|
||||||
MODULES = lang/go
|
MODULES = lang/go
|
||||||
MODGO_LDFLAGS += -X "github.com/cli/cli/v${V:R:R}/internal/build.Version=$V"
|
MODGO_LDFLAGS += -X "${MODGO_MODNAME}/internal/build.Version=$V"
|
||||||
|
|
||||||
do-test:
|
do-test:
|
||||||
cd ${WRKSRC} && ${MODGO_TEST_CMD} ./...
|
cd ${WRKSRC} && ${MODGO_TEST_CMD} ./...
|
||||||
|
|
Loading…
Reference in New Issue