aports/testing/vals/APKBUILD
2025-02-09 17:41:08 +01:00

41 lines
1.3 KiB
Plaintext

maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
pkgname=vals
pkgver=0.39.0
pkgrel=1
pkgdesc="Helm-like configuration values loader with support for various sources"
url="https://github.com/helmfile/vals"
arch="all"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/helmfile/vals/archive/refs/tags/v$pkgver.tar.gz"
options="net" # download Go modules
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build -v \
-o bin/$pkgname \
-ldflags "-X main.version=v$pkgver -X main.commit=AlpineLinux" \
./cmd/vals
}
check() {
# 0.38.0: Test_HttpJson/Error_getting_document_from_location_jsonquery.LoadURL
# fails at vals_httpjson_test.go:151
# TestValues_.* tests require the running backend services
# Tests in pkg/providers/k8s module requires a kubeconfig file with a locally running k8s cluster
# shellcheck disable=2046
go test -skip 'Test_HttpJson|TestValues_.*' \
$(go list ./... | grep -v 'pkg/providers/k8s')
}
package() {
install -Dm755 bin/$pkgname -t "$pkgdir"/usr/bin/
}
sha512sums="
36e9f489b2d11da9bad185779d0b97aa02419ca517d3f45effc67e2b20351da646282227254e86949aeb8e18f47f1a002fb07b2ab29df58156c9ee8418b78421 vals-0.39.0.tar.gz
"