Skip to content

Missing support for compilers config in Mix.install/2 #12349

@Eiji7

Description

@Eiji7

Elixir and Erlang/OTP versions

Found no support at all up to main branch. Erlang version N/A.

Operating system

N/A - that's Elixir issue regardless of OS

Current behavior

See [] (empty list) value for compilers config regardless of passed options.

elixir/lib/mix/lib/mix.ex

Lines 723 to 737 in 6730d66

config = [
version: "0.1.0",
build_embedded: false,
build_per_environment: true,
build_path: "_build",
lockfile: "mix.lock",
deps_path: "deps",
deps: deps,
app: :mix_install,
erlc_paths: ["src"],
elixirc_paths: ["lib"],
compilers: [],
consolidate_protocols: consolidate_protocols?,
config_path: config_path
]

Expected behavior

Some libraries requires custom mix compilers to work. The problem was found by me when I want to test tria in my scripts, but applies to other libraries as well, for example elixir_make.

Note: When creating this issue I was thinking about it more like a bug report rather than a proposal, because Mix.install/2 was added to help working with dependencies in single file scripts and missing option blocks developers from doing so in specific use cases.

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