Skip to content

Commit

Permalink
chore: fix make renovate (#1493)
Browse files Browse the repository at this point in the history
When renovate runs the make renovate target, it fails to deduplicate
dependencies because the deduplicator scripts are not installed. This
fixes it.
  • Loading branch information
t0yv0 authored Jan 17, 2025
1 parent ece099c commit b70ef9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ci-mgmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ template: generic

buildProviderCmd: "OS=$(1) ARCH=$(2) OUT=$(3) yarn --cwd awsx build"
testProviderCmd: "yarn --cwd awsx test"
renovateCmd: "yarn --cwd awsx dedupe-deps && make generate_sdks"
renovateCmd: "./scripts/renovate.sh"

env:
ALT_AWS_ACCESS_KEY_ID: ${{ secrets.ALT_AWS_ACCESS_KEY_ID }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ provider_dist-darwin-arm64: bin/$(PROVIDER)-v$(VERSION_GENERIC)-darwin-arm64.tar
provider_dist-windows-amd64: bin/$(PROVIDER)-v$(VERSION_GENERIC)-windows-amd64.tar.gz
provider_dist: provider_dist-linux-amd64 provider_dist-linux-arm64 provider_dist-darwin-amd64 provider_dist-darwin-arm64 provider_dist-windows-amd64
.PHONY: provider_dist-linux-amd64 provider_dist-linux-arm64 provider_dist-darwin-amd64 provider_dist-darwin-arm64 provider_dist-windows-amd64 provider_dist
renovate_cmd = yarn --cwd awsx dedupe-deps && make generate_sdks
renovate_cmd = ./scripts/renovate.sh
renovate:
$(call renovate_cmd)
.PHONY: renovate
Expand Down
7 changes: 7 additions & 0 deletions scripts/renovate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

make generate_sdks
yarn --cwd awsx install --frozen-lockfile
yarn --cwd awsx dedupe-deps

0 comments on commit b70ef9c

Please sign in to comment.