Repository navigation
Remove uv and the package-manager abstraction; pixi is the only package manager - #522
Merged
Merged
Conversation
…ge manager uv was only ever stubbed out as a provider and never implemented. Remove it and the abstraction that existed to support multiple package managers: - Delete the pkgmgr interface/factory/registry; move internal/pkgmgr/pixi to internal/pixi and give it the option/result types directly. - Executor and services call pixi directly. A small test-replaceable pixiListPackages hook in the service package replaces the registry as the test seam for stubbing pixi list. - Drop the package_manager field from the server workspace model, the CLI local store, API requests/responses, the CLI client, the Wails app, and the frontend. Both migrations drop the legacy NOT NULL column (it would otherwise break inserts on existing databases); regression tests cover the legacy-column path. - Remove package_manager.default_type and uv_path config keys plus their env bindings (NEBI_PACKAGE_MANAGER_PIXI_PATH still works), docker/uv.Dockerfile, and the build-docker-uv Makefile target (test-pkgmgr is now test-pixi). - Regenerate swagger docs; update AGENTS.md and CONTRIBUTING.md.
✅ Deploy Preview for nebi-docs canceled.
|
pmeier
reviewed
Aug 25, 2026
- Replace single-field PackageManagerConfig with top-level Config.PixiPath (pixi_path / NEBI_PIXI_PATH); NEBI_PACKAGE_MANAGER_PIXI_PATH kept as a legacy env alias - OutputLimitError.Error() no longer substitutes hardcoded defaults for Command/Stream; every constructor sets both
pmeier
approved these changes
Aug 26, 2026
pmeier
pushed a commit
that referenced
this pull request
Aug 31, 2026
…ated databases (#550) * Fix SQLite startup crash dropping workspaces.package_manager on populated databases The glebarez/sqlite driver emulates DropColumn by rebuilding the table (create workspaces__temp, copy rows, drop workspaces, rename), and unlike DropTable/AlterColumn it does not suspend foreign_keys first, so DROP TABLE on the old workspaces violates the foreign keys held by jobs/publications rows and aborts startup on any pre-#522 database with real usage history. Run the drop pinned to a single connection with foreign_keys suspended (the DSN pragma re-enables it on every new pooled connection, and SQLite ignores the pragma inside a transaction), and drop any workspaces__temp table stranded by a previously failed rebuild before AutoMigrate runs. Fixes #549 Co-Authored-By: Claude Fable 5 <[email protected]> * Remove the stranded workspaces__temp cleanup; the premise was wrong The driver's DropColumn rebuild (create temp, copy, drop, rename) runs inside a single transaction, so the pre-fix FK failure rolls the temp table back — a committed database can never contain a stranded workspaces__temp from that path. Verified empirically: reproducing the crash leaves no temp table, and a real pre-upgrade database that lived through the crash has none either. Drop the startup cleanup and the test's manufactured temp table, which guarded a state that cannot arise. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VGNXRuSFe8PvDQYyX1BVDS --------- Co-authored-by: Claude Fable 5 <[email protected]>
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.
Summary
uv was only ever stubbed out as a provider and never implemented. This removes it and the multi-package-manager abstraction that existed to support it. Pixi is the only package manager Nebi uses, and the extra indirection wasn't paying for itself.
Abstraction removal
internal/pkgmgr(thePackageManagerinterface, factory, and registry). The pixi implementation moves up tointernal/pixiand owns its option/result types directly.*pixi.PixiManagerconcretely.internal/executorno longer type-asserts to find the binary path.service.SetPixiListPackagesForTests, which stubspixi list— the only pixi dependency tests actually needed to fake (everything else goes through the injectedExecutor).uv removal
package_manager.default_typeandpackage_manager.uv_pathconfig keys and their env bindings are gone.package_manager.pixi_path/NEBI_PACKAGE_MANAGER_PIXI_PATHstill work unchanged.docker/uv.Dockerfileand thebuild-docker-uvMakefile target are deleted;test-pkgmgris nowtest-pixi.UV_CACHE_DIRininternal/process/env.gointentionally stays — that's pixi's own uv cache for pypi-dependencies, not the provider.package_managerfield removal (end to end)The workspace field could only ever hold
"pixi", so it's dropped from the server model, the CLI local store, API requests/responses, the CLI client andnebi info, the Wails app, swagger (regenerated), and the frontend (types, create calls, and the Package Manager rows on both detail pages).Migration note: the column was
NOT NULLwith no default, and GORM AutoMigrate never drops columns, so leaving it would break all workspace inserts on existing databases. Bothdb.Migrate(server) andstore.Open(CLI local SQLite) now drop the column if present. Regression tests build the legacy schema and verify the drop plus a post-migration insert. Data loss is nil in practice — the column only ever held"pixi".Compatibility: old CLIs that send
package_manageron workspace create are silently ignored; an old CLI runningnebi infoagainst a new server shows no package-manager line.Test plan
go build/go vetclean, including-tags=e2e./internal/... ./cmd/...)internal/dbandinternal/storetsc -bclean, all 233 vitest tests pass, biome CI check cleanmake swagger(zeropackage_managerreferences remain)