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

Suggestion: neil dep local <lib> <path> #182

Open
rads opened this issue May 7, 2023 · 2 comments
Open

Suggestion: neil dep local <lib> <path> #182

rads opened this issue May 7, 2023 · 2 comments

Comments

@rads
Copy link
Collaborator

rads commented May 7, 2023

Description:
During local dev we use :local/root in the deps.edn file for libs we want to override.

Problem:
Editing deps.edn manually when checking out a branch is tedious. Having a command for this in neil would enable automation (such as keybindings) to make this smoother.

Example:

$ cat deps.edn
{:deps {io.github.rads/deps-info {:git/url "https://github.com/rads/deps-info"
                                  :git/tag "v0.1.2"
                                  :git/sha "440af72"}}}

$ neil dep local deps-info ../deps-info
$ cat deps.edn
{:deps {io.github.rads/deps-info {:local/root "../deps-info"}
                                 #_{:git/url "https://github.com/rads/deps-info"
                                    :git/tag "v0.1.2"
                                    :git/sha "440af72"}}}

Questions:

  • Should it support toggling on/off or just set it once and let the user manage the undo part?
@borkdude
Copy link
Contributor

borkdude commented May 7, 2023

I think maybe we could do it like:

neil dep add <lib> --local

since we also have:

neil dep add <lib> --sha ...

The toggling idea is quite neat.

@borkdude
Copy link
Contributor

borkdude commented May 7, 2023

Or rather: neil dep add lib --local/root path

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

2 participants