aspect-build / aspect-build/rules_js

Avoid unrelated application rebuilds

Open
#360 0 comments 0 reactions 0 assignees View on GitHub
enhancement need: investigation
Dominant language
Starlark
Stars
378
Forks
183
Avg merge
1d 11h
Merged PRs (30d)
29

Description

Based on https://github.com/pnpm/pnpm/issues/4868 we suspect that pnpm's single workspace lockfile will sometimes change in unnecessary ways that invalidate cached builds. This would lead to a monorepo developer making a change in their app, and then some unrelated app gets a new build (and new release, if that's how they configure CI/CD)

Turning off https://pnpm.io/npmrc#shared-workspace-lockfile might be a mitigation.

Contributor guide

Open the contributing guide

Research direction

Start by reading pnpm issue 4868 and the shared-workspace-lockfile configuration documented at pnpm.io/npmrc#shared-workspace-lockfile. Reproduce the suspected unnecessary lockfile changes in a workspace and trace how they invalidate cached builds. Done means an app change no longer rebuilds or releases unrelated applications.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.