Fix Gleam compile script error

- 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 <noreply@anthropic.com>
This commit is contained in:
Graham McIntire 2025-07-18 14:50:22 -05:00
parent 2e80a720af
commit 177f0746bc
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

3
.gitignore vendored
View file

@ -45,3 +45,6 @@ server.log
# Gleam build directory
/build/
# Gleam compile script that causes Erlang compilation errors
gleam@@compile.erl

View file

@ -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.