Unverified Commit 14c295fe authored by Ryan Mulligan's avatar Ryan Mulligan Committed by GitHub
Browse files

cdktf-cli: fix version (#465006)

parents 65a46e68 abdc3e66
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;