Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error for empty repos option #13

Open
rizo opened this issue Aug 16, 2023 · 0 comments
Open

Better error for empty repos option #13

rizo opened this issue Aug 16, 2023 · 0 comments

Comments

@rizo
Copy link
Owner

rizo commented Aug 16, 2023

When repos = [] onix will fail with:

onix: internal error, uncaught exception:
      Failure("Invalid repo format: ")
      Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33
      Called from Stdlib__List.map in file "list.ml", line 92, characters 20-23
      Called from Onix_core__Nix_utils.resolve_repos in file "src/onix_core/Nix_utils.ml", line 198, characters 27-51
      Called from Onix_core__Solver.solve in file "src/onix_core/Solver.ml", line 46, characters 4-43
      Called from Dune__exe__Main.Lock.run in file "src/Main.ml", line 224, characters 6-119
      Called from Cmdliner_term.app.(fun) in file "cmdliner_term.ml", line 24, characters 19-24
      Called from Cmdliner_eval.run_parser in file "cmdliner_eval.ml", line 34, characters 37-44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant