pulumi / pulumi/examples

GCP examples have no committed lockfiles, so prereleases are hard to install

Open
#3,003 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pulumi/examples Task
Dominant language
TypeScript
Stars
2.6k
Forks
894
Avg merge
12h 19m
Merged PRs (30d)
39

Description

pulumi/examples has exactly one committed package-lock.json, at the repo root. None of the 18 TypeScript GCP examples has one.

This surfaced while testing the pulumi-gcp v10 alpha. npm's min-release-age setting, increasingly common as supply-chain hardening, refuses to resolve a version published inside the configured window, so npm install @pulumi/gcp@10.0.0-alpha.1 fails with a confusing ETARGET that reads as though the package does not exist. Installing from a lockfile is not subject to that check, because the version is already resolved, so npm ci works where npm install does not.

Committed lockfiles would make the examples reproducible and would carry prerelease testers past this. The cost is 18 more files to maintain and more Renovate surface, and a stale lockfile can hand a newcomer an old dependency tree, which is presumably why the repo has avoided them. Filing so the trade-off is recorded rather than rediscovered.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the 18 TypeScript GCP examples under pulumi/examples and compare their dependency setup with the single committed package-lock.json at the repository root. Reproduce the reported difference between npm install and npm ci with the pulumi-gcp v10 alpha and review the maintenance trade-offs. Done means the repository has a clear decision about whether and where lockfiles should be committed.

Written by the indexing model from the issue text.

Assessment

Tech stack
gcp, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.