marcdel

marcdel

Caching issue when compiling for Windows with Burrito

I’ve got a super basic mix new app that prints the args from Burrito.Util.Args.get_arguments() and calls System.halt(0). That works fine. However! It seems like something is being cached somewhere because if I add or change the print statement, I see the change when running ./burrito_out/carne_asada_macos, but if I run the .exe version I still see the original message.

Here’s my build script:

rm -rf /Users/marc/Library/Application\ Support/.burrito/
rm -rf burrito_out/
rm -rf _build/
MIX_ENV=prod mix release --overwrite

Here are the debugging steps I’ve tried:
Running it with wine64 burrito_out/carne_asada_windows.exe
Running it on a Windows VM via Parallels
Running it on an actual Windows machine

Anyone run into this or have other ideas to try?

Compiling on MacOS Sonoma (update: I tried compiling in a Linux VM and see the same behavior)
elixir 1.14.4-otp-25
erlang 25.3
burrito from github main: {:burrito, github: "burrito-elixir/burrito"}

First Post!

ggwpez

ggwpez

Same issue, thought I was going crazy. Are you running it inside nix?
I ended up renaming the Burrito release for every release, this seems to invalidate the cache and fix the issue. Will be montoring my disk space, maybe one folder grows enough to show where it is caching that.

Something like this, and then undoing it by creating a backup file first:

TIMESTAMP=$(date +%s%3N)
sed -i "s/gm_node_bin:/gm_node_bin_${TIMESTAMP}:/g" mix.exs

Where Next?

Popular in Questions Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
logicmason
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
sacepums
Hey guys. I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New

Other popular topics Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

We're in Beta

About us Mission Statement