Skip to content

deps alias ordering #2246

@mfikes

Description

@mfikes

The ordering of aliases in REPL configuration doesn't appear to be honored.

Repro:

deps.edn:

{:aliases {:a {:main-opts ["-e" "1"]}
           :b {:main-opts ["-e" "2"]}}}

If you use clj directly, you can observe the effect of alias ordering:

$ clj -A:a:b
2
$ clj -A:b:a
1

But, if you set up a project in Cursive with this deps.edn and then set up a REPL and configure it to "Run with Deps" specifying Alises as either b,a or a,b in both cases when launching the REPL, I see it printing 1.

The latter—with the order a,b—should print 2.

Rationale: See https://clojure.org/reference/deps_and_cli where it indicates

If multiple -M alias maps are activated, only the last one will be used

This is with Cursive v1.8.2-2019.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMarks issues describing bugsreleasedMarks issues which have had the fixes released in a stable build

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions