Skip to content

Commit ecb0c2c

Browse files
committed
Commit stub SDK manifest so Dependabot can resolve the file: dependency
Dependabot's npm updater fetches manifests directly from git and aborts on every run because package.json declares "@pulumi/googleworkspace": "file:sdks/googleworkspace" while sdks/ is gitignored and only materialized by `pulumi install`. Keep the generated SDK sources ignored, but commit sdks/googleworkspace/package.json (name/version/dependencies matching the existing package-lock.json entry) so the path dependency resolves from the git tree. `pulumi install` removes and regenerates the whole SDK directory before npm ci in CI, so CI behavior is unchanged.
1 parent 16701aa commit ecb0c2c

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ devenv.lock
88
# Pulumi
99
.pulumi/
1010
Pulumi.*.yaml.bak
11-
sdks
11+
# Generated SDKs stay ignored, but keep the stub manifest so Dependabot can
12+
# resolve the file: dependency (nested negations are required: git cannot
13+
# re-include a file whose parent directory is excluded)
14+
sdks/*
15+
!sdks/googleworkspace/
16+
sdks/googleworkspace/*
17+
!sdks/googleworkspace/package.json
1218

1319
# Secrets
1420
passphrase.prod.txt

sdks/googleworkspace/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@pulumi/googleworkspace",
3+
"version": "0.7.0",
4+
"description": "Stub manifest for the @pulumi/googleworkspace SDK, committed so Dependabot can resolve the file: dependency. The full SDK is generated in place by `pulumi install` (see Pulumi.yaml).",
5+
"dependencies": {
6+
"@pulumi/pulumi": "^3.142.0",
7+
"@types/node": "^18",
8+
"async-mutex": "^0.5.0",
9+
"typescript": "^4.3.5"
10+
}
11+
}

0 commit comments

Comments
 (0)