cdegroot

cdegroot

I have trouble (cleanly) solving an issue that I think should be solvable, but clearly Mix isn’t doing what I want it to do. I hope someone here can help/spot the obvious oversight.

https://github.com/cdegroot/path_dep_problems has a sample repo. There’s a library that, among others, outputs a file in priv; then theapp that has the library as a dependency and needs to use that generated file, then finally another application, this times a Nerves one (although I’m quite certain that this doesn’t have to do with Nerves at this point), pulls in the application presumably to make a LED light blink on a Raspberry Pi 0 :wink:

The structure is quite simple and doesn’t seem to contain a lot of “you shouldn’t do that”. It smells like Mix is “too early” to have the dependency loaded as an application (so that Application.... or :code... would work), and that the Mix.Project functions just take a stab at it (they point typically to the _build dir in the dependency, but if I’m compiling the top level application, that’s not where the dependency is being built).

I’ve been toying with all kinds of options, but for the life of me cannot figure out how to reliably (and cleanly) set the path to the dependency’s priv directory in theapp’s Mix config (and some suggestions on Slack didn’t do the trick either, so far). Checking out the code and running a compile in the Nerves app should make the issue quite clear, probably way more so than my attempts here to describe the issue. Any help would be much appreciated.

Where Next? Top

Trending in Questions Top

RSP87
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
nseaSeb
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
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
RemyXRenard
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
velrest
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
samoloth
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
FlyingNoodle
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 Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
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
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews