Commit 729a6a28 authored by afreakk's avatar afreakk
Browse files

pulumi: 3.72.2 -> 3.89.0

parent f743f021
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ buildPythonPackage rec {
    cp ../../README.md .
    substituteInPlace setup.py \
      --replace "3.0.0" "${version}" \
      --replace "grpcio==1.51.3" "grpcio" \
      --replace "grpcio==1.56.2" "grpcio" \
      --replace "semver~=2.13" "semver"
  '';

+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ buildGoModule rec {

  sourceRoot = "${src.name}/sdk/go/pulumi-language-go";

  vendorHash = "sha256-6/umLzw7HMplP/cJknBsWmiwAnc+YM4tIz4Zl2QMTOQ=";
  vendorHash = "sha256-hMJ6x/zG6rwk/Ai54EF3jwKOTNZ9mwP/JQuX8eGYYVU=";

  ldflags = [
    "-s"
+8 −1
Original line number Diff line number Diff line
@@ -9,7 +9,14 @@ buildGoModule rec {

  sourceRoot = "${src.name}/sdk/nodejs/cmd/pulumi-language-nodejs";

  vendorHash = "sha256-3kDWb+1aebV2D+Nm5bkhKrJZMe/lD0ltFQ7p+Bfk644=";
  vendorHash = "sha256-763jxzGCkJ42TKX6ziPb9hNRIo3drMArIZ8QRuSB31k=";

  postPatch = ''
    # Gives github.com/pulumi/pulumi/pkg/v3: is replaced in go.mod, but not marked as replaced in vendor/modules.txt etc
    substituteInPlace language_test.go \
      --replace "TestLanguage" \
                "SkipTestLanguage"
  '';

  ldflags = [
    "-s"
+7 −16
Original line number Diff line number Diff line
@@ -4,29 +4,20 @@
, python3
}:
buildGoModule rec {
  inherit (pulumi) version src sdkVendorHash;
  inherit (pulumi) version src;

  pname = "pulumi-language-python";

  sourceRoot = "${src.name}/sdk";
  sourceRoot = "${src.name}/sdk/python/cmd/pulumi-language-python";

  vendorHash = sdkVendorHash;
  vendorHash = "sha256-HlcSkFoLPcHRyp0yH+ojGnL/gubfGyCP1iCK6sOootQ=";

  postPatch = ''
    # Requires network
    substituteInPlace python/python_test.go \
      --replace "TestRunningPipInVirtualEnvironment" \
                "SkipTestRunningPipInVirtualEnvironment"

    substituteInPlace python/cmd/pulumi-language-python/main_test.go \
    substituteInPlace main_test.go \
      --replace "TestDeterminePulumiPackages" \
                "SkipTestDeterminePulumiPackages"
  '';

  subPackages = [
    "python/cmd/pulumi-language-python"
  ];

  ldflags = [
    "-s"
    "-w"
@@ -38,8 +29,8 @@ buildGoModule rec {
  ];

  postInstall = ''
    cp python/cmd/pulumi-language-python-exec    $out/bin
    cp python/dist/pulumi-resource-pulumi-python $out/bin
    cp python/dist/pulumi-analyzer-policy-python $out/bin
    cp ../pulumi-language-python-exec           $out/bin
    cp ../../dist/pulumi-resource-pulumi-python $out/bin
    cp ../../dist/pulumi-analyzer-policy-python $out/bin
  '';
}
+23 −4
Original line number Diff line number Diff line
@@ -14,21 +14,21 @@

buildGoModule rec {
  pname = "pulumi";
  version = "3.72.2";
  version = "3.89.0";

  # Used in pulumi-language packages, which inherit this prop
  sdkVendorHash = "sha256-S8eb2V7ZHhQ0xas+88lwxjL50+22dbyJ0aM60dAtb5k=";
  sdkVendorHash = "sha256-1gTLZ/hP0LdVBpNZKnVicCTCVU7+8B9LyRgGNHAptUM=";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "v${version}";
    hash = "sha256-g/8l/ebtb1Gs6TKtg0joe55TyWj1/SAiA4Ds1NHKLFI=";
    hash = "sha256-a0ugJJ+brvETUC0WCpebnsC5PgTUshDXuj/RaXLO5Mc=";
    # Some tests rely on checkout directory name
    name = "pulumi";
  };

  vendorHash = "sha256-eOxlTsvC/B+YTFlmT7MtiBBSJIntI4vogdiZ1gOkehw=";
  vendorHash = "sha256-oJqi5STUUSJoydnH/P71e5v8MojT10JlpEedGRTxgfU=";

  sourceRoot = "${src.name}/pkg";

@@ -51,6 +51,25 @@ buildGoModule rec {
  disabledTests = [
    # Flaky test
    "TestPendingDeleteOrder"
    # Tries to clone repo: github.com/pulumi/templates.git
    "TestGenerateOnlyProjectCheck"
    # Following tests give this error, not quite sure why:
    #     Error Trace:    /build/pulumi/pkg/engine/lifecycletest/update_plan_test.go:273
    # Error:          Received unexpected error:
    #                 Unexpected diag message: <{%reset%}>using pulumi-resource-pkgA from $PATH at /build/tmp.bS8caxmTx7/pulumi-resource-pkgA<{%reset%}>
    # Test:           TestUnplannedDelete
    "TestExpectedDelete"
    "TestPlannedInputOutputDifferences"
    "TestPlannedUpdateChangedStack"
    "TestExpectedCreate"
    "TestUnplannedDelete"
    # Following test gives this  error, not sure why:
    # --- Expected
    # +++ Actual
    # @@ -1 +1 @@
    # -gcp
    # +aws
    "TestPluginMapper_MappedNamesDifferFromPulumiName"
  ];

  nativeCheckInputs = [