diff options
author | rinpatch <rinpatch@sdf.org> | 2021-02-09 22:10:09 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2021-02-09 22:10:09 +0300 |
commit | f13f5d9303d45093953a7c609a7b1f282a31e8da (patch) | |
tree | c3d5ba85b24bfbe983549cf04520c0b2a6ac11b7 /lib/mix | |
parent | fc42e714e234542bfec5a53a3fb9b7a45bcb4bd3 (diff) | |
download | pleroma-f13f5d9303d45093953a7c609a7b1f282a31e8da.tar.gz pleroma-f13f5d9303d45093953a7c609a7b1f282a31e8da.zip |
OpenAPI spec task: Load pleroma application to get version info
For whatever reason it seems to pick up the version without loading the
app on my machine, but not on the CI.
Diffstat (limited to 'lib/mix')
-rw-r--r-- | lib/mix/tasks/pleroma/openapi_spec.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mix/tasks/pleroma/openapi_spec.ex b/lib/mix/tasks/pleroma/openapi_spec.ex index 524bf5144..8f719c58b 100644 --- a/lib/mix/tasks/pleroma/openapi_spec.ex +++ b/lib/mix/tasks/pleroma/openapi_spec.ex @@ -1,5 +1,7 @@ defmodule Mix.Tasks.Pleroma.OpenapiSpec do def run([path]) do + # Load Pleroma application to get version info + Application.load(:pleroma) spec = Pleroma.Web.ApiSpec.spec(server_specific: false) |> Jason.encode!() File.write(path, spec) end |