-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devbox add fallthrough and fallback for packages not handled by search (
#1264) ## Summary `devbox add` fallthrough and fallback for packages not handled by search. This PR does not do the following: 1. Print a warning that a package is in a fallthrough case (I'm unclear if a warning is needed?) 2. Accept an alternative nixpkg commit hash for that specific package (I'm unclear if we are deprecating `nixpkg` commit field in `devbox.json` immediately?) I'd like to address those two things above if needed in a separate PR as a follow up. Example lockfile: ``` { "lockfile_version": "1", "packages": { "python310": { "plugin_version": "0.0.1", "resolved": "github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62#python310", "source": "nixpkg" }, "python310Packages.pip@latest": { "last_modified": "2023-05-06T16:57:53Z", "plugin_version": "0.0.1", "resolved": "github:NixOS/nixpkgs/16b3b0c53b1ee8936739f8c588544e7fcec3fc60#python310Packages.pip", "source": "devbox-search", "version": "23.0.1" }, "stdenv.cc.cc.lib": { "resolved": "github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62#stdenv.cc.cc.lib", "source": "nixpkg" } } } ``` ## How was it tested? In the Tensorflow example: ``` devbox add stdenv.cc.cc.lib devbox add nodejs-16_x devbox update ```
- Loading branch information
Showing
7 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Removing this line causes
pkgs
to be empty later on. We are no longer explicitly adding to lockfile (though because of some other code the packages get added anyway). Another issue is we don't end up showing the readme