fix parser version check
This commit is contained in:
parent
42bac34073
commit
82e582d645
1 changed files with 2 additions and 5 deletions
|
|
@ -3,9 +3,6 @@ defmodule Aprsme.DependencyInfo do
|
||||||
Provides information about dependencies, particularly for production builds.
|
Provides information about dependencies, particularly for production builds.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Store parser git hash at compile time
|
|
||||||
@parser_git_hash get_static_parser_hash()
|
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Gets the SHA1 hash of the aprs library currently being used.
|
Gets the SHA1 hash of the aprs library currently being used.
|
||||||
In development: reads from vendor/aprs directory
|
In development: reads from vendor/aprs directory
|
||||||
|
|
@ -13,8 +10,8 @@ defmodule Aprsme.DependencyInfo do
|
||||||
"""
|
"""
|
||||||
def get_aprs_library_sha do
|
def get_aprs_library_sha do
|
||||||
if Application.get_env(:aprsme, :env, :dev) == :prod do
|
if Application.get_env(:aprsme, :env, :dev) == :prod do
|
||||||
# In production, use the static hash captured at compile time
|
# In production, use the static hash captured at build time
|
||||||
@parser_git_hash
|
get_static_parser_hash()
|
||||||
else
|
else
|
||||||
get_aprs_sha_from_vendor()
|
get_aprs_sha_from_vendor()
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue