Skip to content

Commit

Permalink
chore: ensure deduplicated dependencies (#1482)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
t0yv0 authored Jan 15, 2025
1 parent 4aeca78 commit 9450904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .mk/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ AWSX_SRC := $(wildcard awsx/*.*) $(wildcard awsx/*/*.ts)
.make/provider/darwin-arm64: TARGET := node16-macos-arm64
.make/provider/windows-amd64: TARGET := node16-win-x64
.make/provider/%: .make/awsx_bin .make/gen_types
cd awsx && yarn run check-duplicate-deps
cd awsx && yarn run pkg . ${PKG_ARGS} --target "${TARGET}" --output "${PROVIDER_BIN}"
mkdir -p .make/provider
@touch $@
Expand Down
1 change: 1 addition & 0 deletions .mk/renovate.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.PHONY: renovate
renovate: generate_sdks
cd awsx && yarn run dedupe-deps

0 comments on commit 9450904

Please sign in to comment.