cdktf-cli: fix version (#465006)

This commit is contained in:
Ryan Mulligan
2025-11-26 15:22:02 +00:00
committed by GitHub
+6
View File
@@ -14,6 +14,7 @@
removeReferencesTo,
testers,
yarn,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -101,6 +102,8 @@ stdenv.mkDerivation (finalAttrs: {
buildPhase = ''
runHook preBuild
bash ./tools/align-version.sh
faketty yarn --offline build
runHook postBuild
@@ -139,6 +142,9 @@ stdenv.mkDerivation (finalAttrs: {
"$out/lib/node_modules/cdktf-cli/node_modules/@cdktf/hcl2json/main.wasm"
'';
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;