Repository navigation
aube config get allowBuilds reports a ~/.npmrc value that aube install ignores
#1158
|
$ cat ~/.npmrc
allowBuilds={"esbuild":true}
$ aube config get allowBuilds
{"esbuild":true}
$ aube install
WARN aube::commands::install::unreviewed_builds: ignored build scripts for 1 package(s): esbuild@0.25.12
$ aube ignored-builds
The following builds were ignored during install:
esbuild@0.25.12The same allowlist in Either the install path should read it, or Reprohttps://github.com/mwolson/tmp-aube-issues/tree/main/pnpm-user-npmrc-allowbuilds-read-only Runs entirely inside a throwaway AUBE_BIN=aube ./repro.shIt also asserts the Relationship to #617This is the read half of the problem @iki raised in #617: Versions
|
Replies: 2 comments
|
Confirmed and reproduced on current main. The install behavior is intentional and fail-safe: the build policy only trusts project-scoped PR #1159 fixes the read side by:
Validation: 69 config Bats tests pass, focused Rust coverage passes, and all-target clippy is clean. AI-assisted — Tool: Codex; model: unavailable; version: unavailable. |
|
Confirmed fixed on aube Retested the minimal repro at https://github.com/mwolson/tmp-aube-issues/tree/main/pnpm-user-npmrc-allowbuilds-read-only: with Marking the fix reply as the answer; leaving the discussion open for searchability. |
Confirmed and reproduced on current main.
The install behavior is intentional and fail-safe: the build policy only trusts project-scoped
allowBuildsfrom workspace YAML andpackage.json#pnpm.allowBuilds/package.json#aube.allowBuilds. The bug was in config inspection: it merged raw.npmrcentries without checking whether that setting actually consumes.npmrc, while the settings metadata also incorrectly advertised.npmrcforallowBuilds.PR #1159 fixes the read side by:
.npmrcas an advertisedallowBuildssource.npmrcsettings fromconfig get,config list, and the config TUI unless metadata declares that source