net/krakend-ce: Update to 2.7.2
Add TEST_TARGET and patch with fix of default path to the krakend bin. Use go 1.23. Changelog: https://github.com/krakend/krakend-ce/releases/tag/v2.7.2 PR: 281739 Approved by: submitter is maintainer
This commit is contained in:
parent
b73e89b278
commit
858917c7c3
@ -1,6 +1,6 @@
|
||||
PORTNAME= krakend-ce
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.7.1
|
||||
DISTVERSION= 2.7.2
|
||||
CATEGORIES= net
|
||||
|
||||
MAINTAINER= alster@vinterdalen.se
|
||||
@ -10,17 +10,18 @@ WWW= https://github.com/krakend/krakend-ce/
|
||||
LICENSE= APACHE20
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BROKEN_armv7= vendor/github.com/krakendio/krakend-amqp/v2/consumer.go:47:20: cannot use math.MaxInt64 (untyped int constant 9223372036854775807) as int value in assignment (overflows)
|
||||
NOT_FOR_ARCHS= i386
|
||||
NOT_FOR_ARCHS_REASON= Build failure: math.MaxInt64 overflow
|
||||
NOT_FOR_ARCHS= armv7 i386
|
||||
NOT_FOR_ARCHS_REASON= Build failure: vendor/github.com/krakendio/krakend-amqp/v2/consumer.go:47:20: cannot use math.MaxInt64 (untyped int constant 9223372036854775807) as int value in assignment (overflows)
|
||||
|
||||
USES= go:1.23,modules
|
||||
|
||||
USES= go:1.22,modules
|
||||
GO_MODULE= github.com/krakendio/krakend-ce/v2
|
||||
GO_TARGET= ./cmd/${PORTNAME}
|
||||
|
||||
GO_BUILDFLAGS= -ldflags="-X github.com/luraproject/lura/v2/core.KrakendVersion=${DISTVERSION} \
|
||||
-X github.com/luraproject/lura/v2/core.GoVersion=${GO_VERSION}"
|
||||
|
||||
TEST_TARGET= test
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
TIMESTAMP = 1726129974
|
||||
SHA256 (go/net_krakend-ce/krakend-ce-v2.7.1/v2.7.1.mod) = c733cb1d157ff6a9e3dbfea78a48a4ceeb97d8a2e2eb6be80bce80b4e083ace2
|
||||
SIZE (go/net_krakend-ce/krakend-ce-v2.7.1/v2.7.1.mod) = 14935
|
||||
SHA256 (go/net_krakend-ce/krakend-ce-v2.7.1/v2.7.1.zip) = da4751fe49ca13fe4d57aa48820d7d7a9c494f74519a89d298dbc1e60fd0381d
|
||||
SIZE (go/net_krakend-ce/krakend-ce-v2.7.1/v2.7.1.zip) = 136804
|
||||
TIMESTAMP = 1727414977
|
||||
SHA256 (go/net_krakend-ce/krakend-ce-v2.7.2/v2.7.2.mod) = fdb4b8fbd238ce3dd6e8413380e32e804f3d6c659d7edd840341f92d6ede61cb
|
||||
SIZE (go/net_krakend-ce/krakend-ce-v2.7.2/v2.7.2.mod) = 14959
|
||||
SHA256 (go/net_krakend-ce/krakend-ce-v2.7.2/v2.7.2.zip) = a964651aa427f9eafeab0e5433c08b2b5d6f7681a21a65da72c06fa32d3fcba3
|
||||
SIZE (go/net_krakend-ce/krakend-ce-v2.7.2/v2.7.2.zip) = 138762
|
||||
|
||||
11
net/krakend-ce/files/patch-tests_integration.go
Normal file
11
net/krakend-ce/files/patch-tests_integration.go
Normal file
@ -0,0 +1,11 @@
|
||||
--- tests/integration.go.orig 1979-11-29 20:00:00 UTC
|
||||
+++ tests/integration.go
|
||||
@@ -25,7 +25,7 @@ var (
|
||||
)
|
||||
|
||||
var (
|
||||
- defaultBinPath *string = flag.String("krakend_bin_path", ".././krakend", "The default path to the krakend bin")
|
||||
+ defaultBinPath *string = flag.String("krakend_bin_path", "../../../../../bin/krakend-ce", "The default path to the krakend bin")
|
||||
defaultSpecsPath *string = flag.String("krakend_specs_path", "./fixtures/specs", "The default path to the specs folder")
|
||||
defaultBackendPort *int = flag.Int("krakend_backend_port", 8081, "The port for the mocked backend api")
|
||||
defaultCfgPath *string = flag.String(
|
||||
Loading…
x
Reference in New Issue
Block a user