Skip to content

[UI] ui-new: add git pre-commit hook to strip the bun.lock for npm proxy urls #2311

Open

Description

@newfront

We added support in the pre-commit hook to remove any proxy urls (NPM_PROXY_URL) values that could get into the bun.lock for the /ui and have not added the same check for /ui-new.

See https://github.com/unitycatalog/unitycatalog/blob/main/.pre-commit-config.yaml#L28 for an example of what we did for /ui. We'll need to do the same for /ui-new.

We can also add a note to ./ui-new/AGENTS.md to always run the script in the case where bun install ran with new packages or on a first run.

We will need to clear the bun.lock that has been checked into git, and this safe guard means this will never happen again. The Fast Follow item includes the issue for tracking the required changes that have to go in for automatic testing/formatting/checking of ui-new.

Fast Follow

There is already a github issue (#1950) that is a placeholder for running the github actions for /ui-new while it is incubating. It makes sense to add another check to ensure that the bun.lock is clean (in the same vein as the pre-commit hook) to be on the safe side (or if people disable pre-commit hooks)

Activity

  1. added this to the 0.8 milestone on Nov 19, 2026
  2. self-assigned this
    on Nov 19, 2026
  3. added
    enhancement
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions