argocd-vault-plugin: modernize (#547303)

This commit is contained in:
Peder Bergebakken Sundt
2026-08-01 00:04:45 +00:00
committed by GitHub
@@ -1,19 +1,20 @@
{
lib,
buildGoModule,
fetchFromGitHub,
lib,
testers,
argocd-vault-plugin,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "argocd-vault-plugin";
version = "1.18.1";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "argoproj-labs";
repo = "argocd-vault-plugin";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-rWNR4GVivuEprdX/xhwk/9SReeJ19UWDWx8Bf8z6CTI=";
};
@@ -28,14 +29,10 @@ buildGoModule (finalAttrs: {
# integration tests require filesystem and network access for credentials
doCheck = false;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "version";
doInstallCheck = true;
passthru.tests.version = testers.testVersion {
package = argocd-vault-plugin;
command = "argocd-vault-plugin version";
version = "argocd-vault-plugin v${finalAttrs.version} (unknown) BuildDate: 1970-01-01T00:00:00Z";
};
meta = {
homepage = "https://argocd-vault-plugin.readthedocs.io";
changelog = "https://github.com/argoproj-labs/argocd-vault-plugin/releases/tag/v${finalAttrs.version}";