Skip to content

feat(packages): configure package managers for Depot Packages - #636

Open
jacobwgillespie wants to merge 62 commits into
mainfrom
jacob/packages-configure
Open

jacobwgillespie wants to merge 62 commits into
mainfrom
jacob/packages-configure

Conversation

@jacobwgillespie

@jacobwgillespie jacobwgillespie commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Adds depot packages configure, which configures a package manager to use a Depot Packages repository, and a hidden depot packages token command that credential helpers call.

depot packages configure npm --org <org-id> --repository npmjs
depot packages configure cargo --org <org-id> --repository crates-io
depot packages configure apt --org <org-id> --repository debian --suite bookworm

Token source: DEPOT_TOKEN when set, otherwise the depot login token.

Clients

Client Authentication Files written
pnpm tokenHelper → ~/.depot/bin/depot-package-token (prints Bearer <token>) ~/.npmrc, wrapper script
Cargo (1.79+) cargo:token-from-stdout → depot packages token ~/.cargo/config.toml
npm, Bun, Yarn Classic Saved _authToken User .npmrc (Bun before 1.4.4 ignores NPM_CONFIG_USERCONFIG and prefers $XDG_CONFIG_HOME/.npmrc when present), mode 0600
Bundler Saved repository credential Bundler user config (mode 0600)
gem Saved source URL and depot-<org>_<repository> push key RubyGems config and credentials (mode 0600)
Helm Saved Basic credential helm repo add depot --password-stdin, repositories.yaml set to mode 0600
mamba 2, micromamba Saved Bearer token ~/.mamba/auth/authentication.json, $MAMBARC, $CONDARC, or ~/.mambarc
Pixi Saved Bearer token pixi auth login (keyring or credential file), workspace channels
apt Saved credential /etc/apt/auth.conf.d/, sources.list.d/*.sources, keyring
dnf, yum Saved credential /etc/yum.repos.d/*.repo (mode 0600), metadata key when no --package-key
zypper Saved credential /etc/zypp/credentials.d/, repos.d/, rpm --import
apk (apk-tools ≥ 2.14.12) Saved credential /root/.netrc, /etc/apk/repositories, repository key

--auth store makes pnpm and Cargo save a token instead of using the helper. Clients whose default setup needs a Depot plugin (Yarn 2+, pip, uv, Poetry, twine, Maven, Gradle, sbt, NuGet, Terraform, OpenTofu, Composer, conda) are not included.

flowchart LR
  pnpm -->|tokenHelper| wrapper["~/.depot/bin/depot-package-token"]
  wrapper --> token["depot packages token"]
  cargo -->|cargo:token-from-stdout| token
  token --> env{"DEPOT_TOKEN set?"}
  env -->|yes| out[print token]
  env -->|no| login["depot login token"] --> out
Loading

Behavior

  • Edits change only Depot-managed entries and keep other settings and comments. TOML edits replace whole [registries.depot] and [source.crates-io] tables. If those are defined in another form, setup stops with an error instead of overwriting them.
  • --replace-upstream routes the default public source through the repository: crates.io source replacement, the Bundler mirror, removal of rubygems.org from gem sources, and replacement of conda-forge and defaults channels. It defaults to true when the repository is that registry's built-in cache.
  • With an explicit --replace-upstream=false, setup undoes an earlier replacement: it removes the Bundler mirror, adds rubygems.org back to the gem sources, and adds conda-forge back to the mamba channels.
  • --scope @acme and --auth-only control npm routing, so a publish repository can be added without replacing the install registry.
  • System clients run as root, or write through sudo/doas by piping file contents on stdin, so the token is not in argv. The calling user's token is used, not root's login.
  • The pnpm wrapper and the Cargo provider use the depot found on PATH when it is the running binary, so Homebrew upgrades do not break the path. Otherwise setup reports the path and says to rerun after upgrades.
  • RPM: with --package-key, packages are verified with that key only (gpgcheck=1, repo_gpgcheck=0), because dnf and zypper would also trust a listed metadata key for packages. Without it, Depot's metadata signature is verified (repo_gpgcheck=1) and package checks are off, with a notice. Built-in caches require --package-key.
  • Setup fails instead of reporting success when a higher-precedence setting would override it: registry, token, or index environment variables, a project .npmrc, or a project .cargo/config.toml.
  • DEPOT_PACKAGES_URL overrides https://packages.depot.dev.

Known limitations

  • npm 11 warns Unknown user config "tokenHelper" (pnpm) and "always-auth" (Yarn Classic). pnpm reads tokenHelper only from ~/.npmrc, and Yarn Classic sends tokens for unscoped packages only with always-auth.
  • Pixi receives the token as a command argument, because pixi auth login has no stdin or environment option and is the only way to write to Pixi's keyring.
  • mamba and micromamba credentials are keyed by host, because mamba 2.9 and micromamba 2.3 ignore keys that include a path.
  • pnpm setup fails when the helper path contains whitespace, because pnpm splits tokenHelper on whitespace. --auth store is the alternative.
  • The Windows .cmd wrapper for pnpm compiles but has not been run on Windows.

Note

Medium Risk
The command persists API tokens and edits system package-manager configuration (including via sudo), so misconfiguration or precedence bugs could leak credentials or break installs, though validation and atomic file writes mitigate much of that risk.

Overview
Adds depot packages with configure and a hidden token helper so users can point many package managers at a Depot Packages repository (--org, --repository, plus client-specific flags like --scope, --replace-upstream, --suite, --path).

depot packages configure resolves the token from DEPOT_TOKEN or depot login, builds repository URLs (overridable via DEPOT_PACKAGES_URL), and writes only managed settings while preserving unrelated config. pnpm and Cargo default to credential helpers (~/.depot/bin/depot-package-token and depot packages token); other clients store tokens in their own files. Linux system clients (apt, dnf/yum/zypper, apk) install keys, auth, and repo entries via privileged writes without putting the token on the command line.

The implementation includes extensive pre-flight checks (env overrides, project .npmrc/.cargo configs, pnpm/Bun/Yarn/Bundler/mamba edge cases) and optional upstream replacement for built-in caches (crates.io, rubygems.org, conda-forge, etc.). README documents the command and flags; go-toml/v2 is a direct dependency for Cargo TOML editing; a large configure_test suite covers parsers and write behavior.

Reviewed by Cursor Bugbot for commit 6529aa6. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T18:59:23.934027Z 6529aa6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread pkg/cmd/packages/apk.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5db81a80b1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/apk.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved
Comment thread pkg/cmd/packages/apt.go Resolved
cursor[bot]
cursor Bot previously approved these changes Oct 18, 2026

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale comment

Risk: high. Cursor Bugbot completed successfully; the earlier Alpine-edge finding is resolved and there are no unresolved Bugbot issues requiring human review. Approved.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5bbc5c02d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/rpm.go Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread pkg/cmd/packages/ruby.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6aeb2a5c31

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread pkg/cmd/packages/ruby.go Resolved
@cursor
cursor Bot dismissed their stale review October 18, 2026 18:29

Risk: high. Dismissed this automation’s prior approval because Cursor Bugbot reported a new unresolved medium-severity finding on the current head (writeGemSources can drop other gemrc sources). Human review is needed, and no reviewers were assigned.

cursor[bot]
cursor Bot previously approved these changes Oct 18, 2026

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale comment

Risk: high. Cursor Bugbot completed successfully on the current head with no unresolved findings that need human review. Approved.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ebff7241aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/conda.go Resolved
Comment thread pkg/cmd/packages/apk.go Resolved
Comment thread pkg/cmd/packages/repository.go Resolved
Comment thread pkg/cmd/packages/rubyconfig.go Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread pkg/cmd/packages/apk.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52db49966c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/helm.go Resolved
Comment thread pkg/cmd/packages/rpm.go Resolved
Comment thread pkg/cmd/packages/cargo.go Resolved
Comment thread pkg/cmd/packages/files.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 115a077a4c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/apk.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/cargo.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dbb536f2e1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/apk.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved
Comment thread pkg/cmd/packages/toml.go Resolved
Comment thread pkg/cmd/packages/cargo.go Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread pkg/cmd/packages/conda.go Resolved
@cursor
cursor Bot dismissed their stale review October 18, 2026 19:58

Risk: high. Dismissing the prior approval because Cursor Bugbot completed on the current head with 1 unresolved finding that needs human review. No reviewers were assigned.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8efbfa55f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/rpm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/cargo.go Resolved
Comment thread pkg/cmd/packages/helm.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: caa214e5b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/rpm.go Resolved
Comment thread pkg/cmd/packages/npmrc.go Resolved
Comment thread pkg/cmd/packages/system.go Resolved
Comment thread pkg/cmd/packages/npmrc.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc2d884c6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/helm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 99bc3cf292

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e4de77bb80

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/system.go Resolved
Comment thread pkg/cmd/packages/rpm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
…oject trust rules

- Check the file type before reading a system file, so a FIFO doesn't block.
- Read the zypper repository file with privileges and report read errors.
- Ignore project tokenHelper entries for pnpm, and on pnpm 11.5.3 and later
  ignore project registry and credential entries with ${...} references.
- Use PNPM_CONFIG__AUTH only when pnpm_config__auth is empty.
- Stop when NPM_CONFIG_USERCONFIG is set and the Bun version can't be read.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: defe490b92

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/apk.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved
Comment thread pkg/cmd/packages/rubyconfig.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/ruby.go Resolved
…ndler parsing

- Write pnpm settings to npmrcAuthFile when the environment or config.yaml
  selects it, because pnpm then reads it instead of ~/.npmrc.
- Skip the .npmrc of an npm workspace member, which npm ignores.
- Read Bundler scalar values with Bundler's own quote and comment rules.
- Report a failed `bundle config get` instead of treating it as no setting.
- Read /etc/apk/repositories through the privileged reader.
- Remove Yarn key quotes after the -- prefix.
- Treat a Mamba custom multichannel as upstream only when all its channels are.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread pkg/cmd/packages/ruby.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
cursor[bot]
cursor Bot approved these changes Oct 31, 2026 •
…skip to .npmrc

- Treat exit status 1 with no output from `bundle config get` as an unset
  key, which is how Bundler 4.0.12 and later report it.
- Apply the npm workspace member skip only to the .npmrc check, so the
  publishConfig note still reads the member's package.json.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 15d058fa7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/apk.go Resolved
Comment thread pkg/cmd/packages/helm.go Resolved
Comment thread pkg/cmd/packages/conda.go Resolved
…rce safely, and accept Depot Helm aliases in other organizations

- Match ** and negated npm workspace patterns when deciding whether npm
  ignores a member's .npmrc.
- Read /etc/apk/repositories through the privileged reader during branch
  detection and report read errors.
- Allow the depot Helm alias to move between organizations on the same
  Depot Packages server.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5cddc0a4b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/helm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/cargo.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
…matching, and Helm and Cargo ordering

- Check the Helm repository file type before running helm repo list.
- Expand {a,b} in npm workspace patterns, and skip a member's .npmrc only
  when the member has a package.json.
- Let the Cargo home file's replace-with take precedence over its includes.
- Read the lowercase form of each pnpm path variable first, as pnpm does.
- Reject any tokenHelper in a project .npmrc for pnpm, which refuses to run.
- Reject token helper paths with characters pnpm can't parse.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62dc01ef69

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/files.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
…markers, and reject special user config files

- Use `npm prefix` to find the one project .npmrc npm reads, instead of
  matching workspace patterns in setup.
- Treat only pnpm-workspace.yaml as a pnpm workspace root.
- Reject a user configuration path that isn't a regular file before reading.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b0f1963d2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/cargo.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/helm.go Resolved
…credentials across Depot repositories

- Expand ~/ in config.yaml npmrcAuthFile for pnpm 11, which does so, and
  report relative paths, which pnpm resolves from the current directory.
- Parse pnpm_config__auth as JSON, as pnpm does.
- Reject unscoped credentials in a pnpm project .npmrc whose registry is the
  Depot repository, because pnpm applies them to that registry.
- Check only the workspace root .npmrc for pnpm 11 and later.
- Keep pass_credentials_all when the depot Helm alias moves between Depot
  repositories.
- Read the Cargo home configuration through the regular-file check.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

There are 15 total unresolved issues (including 13 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0dcffd4. Configure here.

Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
…st rules to unscoped credentials

- For pnpm 11 and later, check the .npmrc of the nearest directory with
  pnpm-workspace.yaml, which can be the project directory itself.
- Skip the unscoped credential check when pnpm ignores the file's registry
  because it contains ${...}.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb174d186f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
Comment thread pkg/cmd/packages/npm.go Resolved
…n XDG_CONFIG_HOME is set

pnpm reads auth.ini in its config directory before the user .npmrc, even when npmrcAuthFile selects another file, so setup now always checks it. Bun reads $XDG_CONFIG_HOME/.bunfig.toml instead of ~/.bunfig.toml when XDG_CONFIG_HOME is set, so setup checks only the file Bun reads.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 14 total unresolved issues (including 13 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6529aa6. Configure here.

Comment thread pkg/cmd/packages/npm.go Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk: high. Cursor Bugbot reported unresolved findings on the current head that need human review, so this change is not approved. Human review is needed and no reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant