Skip to content

elixirc evaluates .exs files #3282

@mattly

Description

@mattly

While I know that elixirc is not meant to compile .exs script files, it seems some third-party tooling does not, and will happily run elixirc my-cpu-hungry-and-possibly-dangerous-script.exs to do things like generate bytecode that will never materialize, check for errors, etc, whereby elixirc will happily execute the code.

Since the main elixir executable will run the script file, perhaps elixirc should check it? Or at the very least, throw an error. I encountered two third-party tools for emacs (alchemist, flycheck) that fall into this pattern of behavior, and it wouldn't surprise me if there are more.

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