yamlfmt: prefer versionCheckHook over testers.testVersion
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
testers,
|
||||
yamlfmt,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
@@ -38,9 +37,11 @@ buildGoModule (finalAttrs: {
|
||||
# https://github.com/google/yamlfmt/issues/256
|
||||
checkFlags = [ "-run=!S/TestNodeRoundtrip" ];
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = yamlfmt;
|
||||
};
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
doInstallCheck = true;
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
meta = {
|
||||
description = "Extensible command line tool or library to format yaml files";
|
||||
|
||||
Reference in New Issue
Block a user