commit: a817f1800ed335ed5ef2353adce3235bfb0e44c3
parent 8484e09424480113ee75bf6d2a5f90073cb58ca6
Author: Phantasm <phantasm@centrum.cz>
Date: Thu, 5 Jun 2025 16:40:52 +0200
Remove forgotten Pleroma.OTPVersion usage in mix.exs
This was used in OTP releases where the normal OTP_VERSION file
is unavailable.
If checking against OTP minor versions and patch levels
is needed again, revert this commit and commit mentioned below.
Context: 1be8deda73add2dde23127be1f4da802dcb25b45
Diffstat:
2 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/changelog.d/remove-forgotten-OTPVersion-usage.skip b/changelog.d/remove-forgotten-OTPVersion-usage.skip
diff --git a/mix.exs b/mix.exs
@@ -37,22 +37,13 @@ defmodule Pleroma.Mixfile do
pleroma: [
include_executables_for: [:unix],
applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
- steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+ steps: [:assemble, ©_files/1, ©_nginx_config/1],
config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
]
]
]
end
- def put_otp_version(%{path: target_path} = release) do
- File.write!(
- Path.join([target_path, "OTP_VERSION"]),
- Pleroma.OTPVersion.version()
- )
-
- release
- end
-
def copy_files(%{path: target_path} = release) do
File.cp_r!("./rel/files", target_path)
release