News for hackers. Stuff that matters.
Re:Single File Elixir Scripts by h0l0cube on Thursday March 09, 2023 @02:51AM (#35079146)
> where is ecto even installed?

For Mix.install you can optionally specify the cache directory. For regular projects they are in the deps folder.

> The location of the cache directory can be controlled using the MIX_INSTALL_DIR environment variable.

https://hexdocs.pm/mix/1.14/Mix.html#install/2

> download from where?

https://hex.pm/packages/ecto

Or you can specify a git commit, or a path if you want to alter it locally.

> No way to keep track of what to change when mix create outputs something different next year.

`mix.lock` keeps track of your resolved dependencies and should be checked in along with your code. Mix/Hex can also be provided the exact `==` versions rather than the `~>` or other Version specifiers

https://hexdocs.pm/elixir/1.14/Version.html

Re:Single File Elixir Scripts by rftyuikdjhgvcf on Saturday March 11, 2023 @01:28AM (#35106019)
"project folder" which is oh so in line of single file utility scripts which you will run from all over the place.

will you have one dep dir on each place you run the script at?