Skip to content

Commit

Permalink
fix: pinning cdk dependencies (#18)
Browse files Browse the repository at this point in the history
Something changed after `v2.103.1` which causes the action to fail with
the below error. Pin it for now.

```shell
Error performing diff:  Error: ENOENT: no such file or directory, open '/home/runner/work/_actions/corymhall/cdk-diff-action/v1-beta/db.json.gz'
    at Object.open (node:internal/fs/sync:78:18)
    at Object.openSync (node:fs:565:17)
    at readFileSync (node:fs:445:35)
    at loadAwsServiceSpecSync (/home/runner/work/_actions/corymhall/cdk-diff-action/v1-beta/node_modules/@aws-cdk/aws-service-spec/lib/index.js:44:1)
    at database (/home/runner/work/_actions/corymhall/cdk-diff-action/v1-beta/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.js:188:1)
    at loadResourceModel (/home/runner/work/_actions/corymhall/cdk-diff-action/v1-beta/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.js:198:1)
    at diffResource (/home/runner/work/_actions/corymhall/cdk-diff-action/v1-beta/node_modules/@aws-cdk/cloudformation-diff/lib/diff/index.js:39:1)
    at diffKeyedEntities (/home/runner/work/_actions/corymhall/cdk-diff-action/v1-beta/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.js:138:1)
    at Resources (/home/runner/work/_actions/corymhall/cdk-diff-action/v1-beta/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.js:30:1)
    at calculateTemplateDiff (/home/runner/work/_actions/corymhall/cdk-diff-action/v1-beta/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.js:101:1) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/runner/work/_actions/corymhall/cdk-diff-action/v1-beta/db.json.gz'
}
```
  • Loading branch information
corymhall authored Nov 20, 2023
1 parent c6850c8 commit 8a635b4
Show file tree
Hide file tree
Showing 9 changed files with 948 additions and 1,943 deletions.
2 changes: 2 additions & 0 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const project = new GitHubActionTypeScriptProject({
name: 'cdk-diff-action',
projenrcTs: true,
depsUpgradeOptions: {
exclude: ['@aws-cdk/cloudformation-diff', '@aws-cdk/cloud-assembly-schema'],
workflowOptions: {
labels: ['auto-approve'],
schedule: UpgradeDependenciesSchedule.WEEKLY,
Expand Down Expand Up @@ -61,8 +62,8 @@ const project = new GitHubActionTypeScriptProject({
},
deps: [
'@octokit/webhooks-definitions',
'@aws-cdk/cloudformation-diff',
'@aws-cdk/cloud-assembly-schema',
'@aws-cdk/cloudformation-diff@v2.103.1',
'@aws-cdk/cloud-assembly-schema@v2.103.1',
'@actions/exec@^1.1.1',
'@actions/io@^1.1.3',
'@actions/tool-cache@^2.0.0',
Expand Down
2,372 changes: 880 additions & 1,492 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

417 changes: 2 additions & 415 deletions dist/licenses.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/assembly.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as path from 'path';
import { AssemblyManifest, Manifest, ArtifactType, AwsCloudFormationStackProperties, NestedCloudAssemblyProperties, BootstrapRole } from '@aws-cdk/cloud-assembly-schema';
import { AssemblyManifest, ArtifactType, AwsCloudFormationStackProperties, NestedCloudAssemblyProperties, BootstrapRole } from '@aws-cdk/cloud-assembly-schema/lib/cloud-assembly';
import { Manifest } from '@aws-cdk/cloud-assembly-schema/lib/manifest';
import * as fs from 'fs-extra';

/**
Expand Down
82 changes: 54 additions & 28 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a635b4

Please sign in to comment.