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:
parent
2e80a720af
commit
177f0746bc
2 changed files with 6 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -45,3 +45,6 @@ server.log
|
|||
|
||||
# Gleam build directory
|
||||
/build/
|
||||
|
||||
# Gleam compile script that causes Erlang compilation errors
|
||||
gleam@@compile.erl
|
||||
|
|
|
|||
5
mix.exs
5
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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue