aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd
AgeCommit message (Collapse)Author
2022-03-07Add shell completion for --override-inputNaïm Favier
2022-03-07Accept and discard fragments in getFlakeRefForCompletionNaïm Favier
Otherwise trying to complete `nix build foo#bar --update-input <Tab>` fails with "unexpected fragment"
2022-03-07Also display suggestions for the commands using the eval cacheregnat
Make `nix build .#nix-armv8l-linux` work for example
2022-03-07Implement a suggestions mechanismregnat
Each `Error` class now includes a set of suggestions, and these are printed by the top-level handler.
2022-03-02Add EvalState::coerceToStorePath() helperEelco Dolstra
This is useful whenever we want to evaluate something to a store path (e.g. in get-drvs.cc). Extracted from the lazy-trees branch (where we can require that a store path must come from a store source tree accessor).
2022-03-02nix profile: Support CA derivationsEelco Dolstra
2022-03-02Move installables-related operationsEelco Dolstra
2022-02-22Replace defaultBla.$system with bla.$system.defaultEelco Dolstra
This also simplifies some InstallableFlake logic and fixes 'nix bundle' parsing its installable twice. Fixes #5532.
2022-02-15quit repl from step modeBen Burdette
2022-02-14make an 'info' level error on breakBen Burdette
2022-02-14InstallableFlake: Default attr paths cleanupEelco Dolstra
This removes some duplicated logic, and fixes "nix bundle" parsing its installable twice.
2022-02-11parseInstallables(): Don't try the flake attr path prefixes when no fragment ↵Eelco Dolstra
is specified Fixes #5880.
2022-02-04link changeBen Burdette
2022-02-04Merge branch 'master' into debug-stepBen Burdette
2022-02-04print value in breakBen Burdette
2022-02-03Allow missing flake.nix for --override-input targetMatthew Bauer
At this point, we don’t know if the input is a flake or not. So, we should allow the user to override the input with a directory without a flake.nix. Ideally, we could figure whether the input was originally a flake or not, but that would require instantiating the whole flake. So just allow it to be missing here, and rely on checks later on to verify the input for us.
2022-02-04Make most calls to determinePos() lazyEelco Dolstra
2022-02-04Merge branch 'issue-3505' of https://github.com/kamadorueda/nixEelco Dolstra
2022-02-03break() primop; step and go debug commandsBen Burdette
2022-01-30use LOWDOWN_LIBS variableThomas Koch
fixes: #5931
2022-01-21forceAttrs: make pos mandatoryKevin Amado
2022-01-21forceValue: make pos mandatoryKevin Amado
- Make passing the position to `forceValue` mandatory, this way we remember people that the position is important for better error messages - Add pos to all `forceValue` calls
2022-01-18Add Installable::toDrvPaths()Eelco Dolstra
This is needed to get the path of a derivation that might not exist (e.g. for 'nix store copy-log'). InstallableStorePath::toDerivedPaths() cannot be used for this because it calls readDerivation(), so it fails if the store doesn't have the derivation.
2022-01-18Add command 'nix store copy-log'Eelco Dolstra
Fixes #5222.
2022-01-18Factor out --from / --to logicEelco Dolstra
2022-01-08clear screen and show top debug traceBen Burdette
2022-01-08optinoal error; compilesBen Burdette
2022-01-07add env to DebugTraceBen Burdette
2022-01-05revert value-addBen Burdette
2022-01-05add colors; remove headingsBen Burdette
2022-01-03merge cleanupBen Burdette
2022-01-03Merge branch 'master' into debug-exploratory-PRBen Burdette
2021-12-27more cleanupBen Burdette
2021-12-27remove debug codeBen Burdette
2021-12-27add DebugTrace for the current errorBen Burdette
2021-12-27:d envBen Burdette
2021-12-27by refernce for addVarToScopeBen Burdette
2021-12-27don't add builtins to extras, initEnv() in regular replBen Burdette
2021-12-23DebugTraceBen Burdette
2021-12-22stack traces basically workingBen Burdette
2021-12-22DebugStackTracker class in one placeBen Burdette
2021-12-22Fix attr path completion after a dotNaïm Favier
2021-12-22Don't insert spaces when completing attribute pathsNaïm Favier
2021-12-20:d errorBen Burdette
2021-12-11EvalCommand::getEvalState: use gc tracable allocator for EvalStateYorick van Pelt
2021-11-30fix linkingBen Burdette
2021-11-30fix merge issuesBen Burdette
2021-11-26Don’t try to complete flakes is the feature isn’t enabledregnat
Fix #5661
2021-11-25Merge branch 'master' into debug-mergeBen Burdette
2021-11-25more cleanupBen Burdette