From 177f0746bca92350d4e424f96f16e7fcc32bee9f Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 18 Jul 2025 14:50:22 -0500 Subject: [PATCH] Fix Gleam compile script error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove gleam@@compile.erl from erlc paths to prevent compilation errors - Add gleam@@compile.erl to .gitignore - Update erlc_paths to only include 'src' directory - This prevents Erlang from trying to compile Gleam's escript files The error was caused by Erlang trying to compile a shell script that starts with #\!/usr/bin/env escript as an Erlang source file. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .gitignore | 3 +++ mix.exs | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 204ec2e..d5dd622 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,6 @@ server.log # Gleam build directory /build/ + +# Gleam compile script that causes Erlang compilation errors +gleam@@compile.erl diff --git a/mix.exs b/mix.exs index 13af81d..e0b679a 100644 --- a/mix.exs +++ b/mix.exs @@ -55,8 +55,9 @@ defmodule Aprsme.MixProject do defp elixirc_paths(_), do: ["lib"] # Specifies erlc paths per environment for Gleam compilation - defp erlc_paths(env) do - ["build/#{env}/erlang/aprsme/_gleam_artefacts", "src"] + defp erlc_paths(_env) do + # Only include src directory to avoid compiling Gleam's internal scripts + ["src"] end # Specifies your project dependencies.