fix parser version check

This commit is contained in:
Graham McIntire 2025-07-07 14:12:56 -05:00
parent 42bac34073
commit 82e582d645
No known key found for this signature in database

View file

@ -3,9 +3,6 @@ defmodule Aprsme.DependencyInfo do
Provides information about dependencies, particularly for production builds.
"""
# Store parser git hash at compile time
@parser_git_hash get_static_parser_hash()
@doc """
Gets the SHA1 hash of the aprs library currently being used.
In development: reads from vendor/aprs directory
@ -13,8 +10,8 @@ defmodule Aprsme.DependencyInfo do
"""
def get_aprs_library_sha do
if Application.get_env(:aprsme, :env, :dev) == :prod do
# In production, use the static hash captured at compile time
@parser_git_hash
# In production, use the static hash captured at build time
get_static_parser_hash()
else
get_aprs_sha_from_vendor()
end