crispinb
I want to use a recent fix in Mix (specifically Another attempt at fixing opening in browser on Windows · hexpm/hex@dd9c62b · GitHub) before the next elixir release arrives. I’ve looked through my installation directories (.asdf/installs/elixir/current/ on linux and ~\scoop\apps\elixir\current\ on windows) and have confused myself. I’ve browsed and ripgrepped and can’t find the relevant source. I realise I don’t have a good handle on how the default packages work so wouldn’t be sure what to do even if I do find it. So some questions from the general to the specific:
- is there a good general doc or description somewhere of how elixir packages relate to modules, and how module discovery and loading works? (in which case I might be able to answer the below questions myself).
- what are the source files (in
[installdir]/lib) used for? I’m guessing they’re not locally compiled, given the presence of the presumably preinstalled *.beam files in[installdir]/lib/**/ebin? - either way, can a preinstalled package be overriden locally? (eg. is there an equivalent of the order in a java classpath I can rely on, or can I edit and recompile one of the preinstalled modules in place?)
- how would I do this (whatever ‘this’ may turn out to be) for the Mix.Tasks.Hex.Docs in the quoted commit?
Answers to any or all alike much appreciated!
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
eksperimental
Create a simbolic link in the install folder , that points to the git repo, I call mine “main” which is the name of the Elixir branch it is running on.
crispinb
After a bit of digging, the TLDR is just to delete my ~/.mix folder, and then reinstall the mix archive from HEAD with
mix install github hexpm/hex. I hadn’t entirely grokked that theMix.Tasks.Hex.Docspackage isn’t part of the Elixir installation, but comes with Hex.In case anyone else comes across this and wonders, here are my rube-ish answers to those of my own questions I’ve managed to answer myself (corrections/additions very welcome):
I haven’t found a single comprehensive source, but reading this Erlang doc (code — OTP 29.0.2 (kernel 11.0.2)), and playing around in
iexwith the:codefunctions was pretty enlightening.Perhaps but I haven’t tried it as it turned out not to be relevant to my situation after all. There is of course a code path from which BEAM files are loaded, and you can add to it
:code.add_paths/1or via an$ERL_LIBSenv var. In Erlang you can override anything other than the Kernel and StdLib modules, but I’m not sure about Elixir.Remove the hex-installed archives from
~/.mix, and reinstall from the hexpm/hex github repo HEAD withmix archive.install.crispinb
Thanks @eksperimental - it turns out I misdirected you, & the changes I wanted to bring in weren’t from the base Elixir installation.