feat(manager/aube): add aube manager#44428
Open
JP-Ellis wants to merge 8 commits into
Open
Conversation
Assisted-by: Claude Code:claude-opus-4-8[1m] Signed-off-by: JP-Ellis <josh@jpellis.me>
Assisted-by: Claude Code:claude-opus-4-8[1m] Signed-off-by: JP-Ellis <josh@jpellis.me>
Assisted-by: Claude Code:claude-opus-4-8[1m] Signed-off-by: JP-Ellis <josh@jpellis.me>
Assisted-by: Claude Code:claude-opus-4-8[1m] Signed-off-by: JP-Ellis <josh@jpellis.me>
Assisted-by: Claude Code:claude-opus-4-8[1m] Signed-off-by: JP-Ellis <josh@jpellis.me>
typeof null === 'object', so the workspaces-shape check threw a TypeError when a package.json set "workspaces": null. Because extraction runs all managers under a single Promise.all, the uncaught throw aborted extraction for every manager in the repo run. Assisted-by: Claude Code:claude-opus-4-8[1m] Signed-off-by: JP-Ellis <josh@jpellis.me>
The .npmrc mutation applied before running the install command (which can carry host-rule registry auth tokens) was only reverted on the success path. Any install failure left the mutated .npmrc on disk for subsequent steps. Reset it in the catch block too, matching the reference manager's implementation. Assisted-by: Claude Code:claude-opus-4-8[1m] Signed-off-by: JP-Ellis <josh@jpellis.me>
aube implements the same ignoreScripts/allowScripts gating as bun but was missing from the supportedManagers list, so generated config option docs under-reported aube support. Assisted-by: Claude Code:claude-opus-4-8[1m] Signed-off-by: JP-Ellis <josh@jpellis.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Adds a new
aubemanager for aube, a Node.js package manager by jdx (author of mise). aube consumes a standardpackage.jsonand resolves dependencies into anaube-lock.yamllock file, refreshed by runningaube install.Requested in discussion #42866.
What the manager does
aube-lock.yamlwith its siblingpackage.json, reusing npm's existingextractPackageJson/resolveNpmrclogic. Full workspace support (theworkspaces: [...]array form and theworkspaces: { packages: [...] }object form).aube-lock.yamlby shelling out toaube install(with--ignore-scriptswhen scripts are disallowed), including npmrc/host-rules handling and lock-file-maintenance.index.tsmirrors the npm-family managers (supersedesManagers: ['npm'], npm + github-tags datasources,supportsLockFileMaintenance), plus registration in the managerapi.ts,toolDefinitions/allToolConfig(@endevco/aubeon the npm datasource), and theignoreScriptssupported-managers list.Reuse of the
bunmanageraube is architecturally near-identical to the existing
bunmanager (both consumepackage.jsonand maintain their own lock file via a CLI). To avoid duplicating the workspace-matching logic across the two managers, the shared helper was extracted frombun/utils.tsintonpm/workspaces.ts, andbunwas updated to import from the new shared location. The oldbun/utils.tsand its spec were removed.aubethen consumes the same helper. No behavioural change tobun.While building aube against
bunas the template, I suspect I found two bugs in the existingbunmanager that would have been copied verbatim. They are fixed inaubehere (aligning with the more-correctnpm/artifacts.tsreference), and left untouched inbun, but I'm flagging them here for possible follow-up:"workspaces": null. The nested-packageschecktypeof workspaces === 'object' && 'packages' in workspacesthrowsTypeError: Cannot use 'in' operator to search for 'packages' in null, becausetypeof null === 'object'. Since the extract phase runs all managers under a singlePromise.allwith no per-manager catch, a repo whosepackage.jsoncontains"workspaces": nullwould abort extraction for every manager in the run. aube guards againstnulland adds a regression test..npmrcnot reset on the install error path.npm/artifacts.tsresets the temporarily-mutated.npmrcon both the success and error paths;bun/artifacts.tsonly resets on success. On anyaube installfailure this would leave a host-rule-derived.npmrc(which can carry registry auth tokens) on disk for subsequent steps. aube resets in thecatchblock, matchingnpm.Note on binary dependency
For this to be fully supported, this manager requires access to the
aubebinary to runaube install. A similar PR to this one for mise will be needed upstream so that Renovate's containerbase can ship anaubeinstaller.Context
Please select one of the following:
This PR originates from discussion #42866.
AI assistance disclosure
Did you use AI tools to create any part of this pull request?
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: