You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just figured out that Gleam uses export erlang-shipment, etc. for package exports targeting Erlang, Javascript, Typescript. Moreover, the Gleam's package index seems to only support adding development packages for a project. I searched some Gleam CLI projects on Github and their solutions are writing the Makefile and use make install to design a customized "installation" on the OS (which also requires you to download the source code manually).
Will there be a CLI application installation support like Rust's cargo install(which can install packages that marked as [[bin]] or [[example]]?
I know that Rust compiles to native programs and Gleam's generated code runs on VMs which is probably making it different for designing the "cargo install" mechanism for Gleam.
The text was updated successfully, but these errors were encountered:
enkerewpo
changed the title
Any support for install gleam CLI applications directly in OS shell like Rust's cargo install [binary_package_name]?
Any support for installing gleam CLI applications directly in OS shell like Rust's cargo install [binary_package_name]?
Dec 23, 2024
enkerewpo
changed the title
Any support for installing gleam CLI applications directly in OS shell like Rust's cargo install [binary_package_name]?
Any support for installing gleam CLI applications directly in OS shell like Rust's cargo install?
Dec 23, 2024
Gleam doesn't compile to native or have a canonical runtime or one that it manages, so it's unclear how this could be officially supported.
You could use projects such as gleescript and JavaScript bundlers to create a single file containing all your compiled code, but you'd need to manage the runtime and installation still.
If you have any ideas for how this might work that would be cool!
I just figured out that Gleam uses
export erlang-shipment
, etc. for package exports targeting Erlang, Javascript, Typescript. Moreover, the Gleam's package index seems to only support adding development packages for a project. I searched some Gleam CLI projects on Github and their solutions are writing the Makefile and usemake install
to design a customized "installation" on the OS (which also requires you to download the source code manually).Will there be a CLI application installation support like Rust's
cargo install
(which can install packages that marked as[[bin]]
or[[example]]
?I know that Rust compiles to native programs and Gleam's generated code runs on VMs which is probably making it different for designing the "cargo install" mechanism for Gleam.
The text was updated successfully, but these errors were encountered: