Skip to content

Stop UI and ts-sdk lint hooks from rewriting the global pnpm config - #73538

Merged
jason810496 merged 1 commit into
apache:mainfrom
Andrushika:airflow-worktree-pnpm-store-reuse
Sep 22, 2026
Merged

jason810496 merged 1 commit into
apache:mainfrom
Andrushika:airflow-worktree-pnpm-store-reuse

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

Why

pnpm normally keeps one package store per machine and hard-links every project's node_modules from it, so a second worktree costs no download and no disk.

Eight prek hooks (ts-compile-lint-ui and its copies) run pnpm config set store-dir .pnpm-store before pnpm install, which moves the store to a path inside the current project. Without --location project that setting is written to the user's global pnpm config, so from then on every worktree on the machine builds its own store, about 760MB each on my machine, and re-downloads the same packages each time.

What

Remove the line. Inside the Breeze container pnpm falls back to a .pnpm-store under the mount on its own, already gitignored. People who already ran the hook need to delete the line from their global config once.

  • Yes (please specify the tool below)

Generated-by: Claude Code (Fable 5.1) following the guidelines

Eight prek hooks (ts-compile-lint-ui and its copies) run
`pnpm config set store-dir .pnpm-store` before `pnpm install`. Without
`--location project` that line lands in the user's global pnpm config, so
every worktree on the machine downloads the UI dependencies again instead
of sharing the global store.

@jason810496 jason810496 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks. I didn't notice the duplicated download behavior before.

@jason810496
jason810496 merged commit 568aef2 into apache:main Sep 22, 2026
89 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-3-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
❌ v3-3-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 568aef2 v3-3-test

This should apply the commit to the v3-3-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants