Skip to content

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

@rads

Description

@rads

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions