Skip to content

Commit 9450904

Browse files
author
Anton Tayanovskyy
authored
chore: ensure deduplicated dependencies (#1482)
This is an important check to include to fail early. If Renovate updates dependencies in a way that causes several copies of `@pulumi/pulumi` SDK to be included then the provider fails at runtime with an obscure error about invokes, as in #1479 - this will fail the build early instead.
1 parent 4aeca78 commit 9450904

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.mk/build.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ AWSX_SRC := $(wildcard awsx/*.*) $(wildcard awsx/*/*.ts)
1414
.make/provider/darwin-arm64: TARGET := node16-macos-arm64
1515
.make/provider/windows-amd64: TARGET := node16-win-x64
1616
.make/provider/%: .make/awsx_bin .make/gen_types
17+
cd awsx && yarn run check-duplicate-deps
1718
cd awsx && yarn run pkg . ${PKG_ARGS} --target "${TARGET}" --output "${PROVIDER_BIN}"
1819
mkdir -p .make/provider
1920
@touch $@

.mk/renovate.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.PHONY: renovate
22
renovate: generate_sdks
3+
cd awsx && yarn run dedupe-deps

0 commit comments

Comments
 (0)