Skip to content

Conversation

aayush-tripathi
Copy link
Contributor

Closes #4771

Running a single module with gleam run -m module should compile the project (if needed) and invoke module:main/0.

To fix this, I have

  • Added a use_entrypoint flag in run_erlang_command
  • Added unit tests for both cases (with/without -m flag)

Running a single module should call <module>:main/0 directly.
Added unit tests for the same.
@aayush-tripathi aayush-tripathi marked this pull request as draft July 16, 2025 12:19
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

Successfully merging this pull request may close these issues.

application_start_module interferes with gleam run -m command

1 participant