From b51ba39dd1310bb525496645df13d956f0fc7b12 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 28 Nov 2023 19:12:15 +0000 Subject: Update Floki to get the :attributes_as_maps feature to allow us to compare equality of parsed documents without issues of key ordering --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index b4b77b161..f31e37676 100644 --- a/mix.exs +++ b/mix.exs @@ -156,7 +156,7 @@ defmodule Pleroma.Mixfile do {:phoenix_swoosh, "~> 1.1"}, {:gen_smtp, "~> 0.13"}, {:ex_syslogger, "~> 1.4"}, - {:floki, "~> 0.27"}, + {:floki, "~> 0.35"}, {:timex, "~> 3.6"}, {:ueberauth, "~> 0.4"}, {:linkify, "~> 0.5.3"}, -- cgit v1.2.3 From 8883fa326a1de11bdf2cf254aa8a1d141d0332ab Mon Sep 17 00:00:00 2001 From: Lain Soykaf Date: Sat, 30 Dec 2023 11:44:23 +0400 Subject: Mix: Update http_signatures version --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index f31e37676..2e622d9da 100644 --- a/mix.exs +++ b/mix.exs @@ -160,7 +160,7 @@ defmodule Pleroma.Mixfile do {:timex, "~> 3.6"}, {:ueberauth, "~> 0.4"}, {:linkify, "~> 0.5.3"}, - {:http_signatures, "~> 0.1.1"}, + {:http_signatures, "~> 0.1.2"}, {:telemetry, "~> 1.0.0", override: true}, {:poolboy, "~> 1.5"}, {:prom_ex, "~> 1.9"}, -- cgit v1.2.3 From 17904003139f72780fcb151491e706f3cdd2374d Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Sat, 20 Jan 2024 22:49:37 -0500 Subject: Add Dialyxir with manual job execution --- mix.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index 2e622d9da..541a60555 100644 --- a/mix.exs +++ b/mix.exs @@ -194,7 +194,8 @@ defmodule Pleroma.Mixfile do {:hackney, "~> 1.18.0", override: true}, {:mox, "~> 1.0", only: :test}, {:websockex, "~> 0.4.3", only: :test}, - {:benchee, "~> 1.0", only: :benchmark} + {:benchee, "~> 1.0", only: :benchmark}, + {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false} ] ++ oauth_deps() end -- cgit v1.2.3 From 0ac010ba3fa41c9bd06565259de57f2a5b5bb8ad Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 22 Jan 2024 10:01:29 -0500 Subject: Replace custom fifo implementation with Exile This is for streaming media to ffmpeg thumbnailer. The existing implementation relies on undocumented behavior. Erlang open_port/2 does not officially support passing a string of a file path for opening. The specs clearly state you are to provide one of the following for open_port/2: {spawn, Command :: string() | binary()} | {spawn_driver, Command :: string() | binary()} | {spawn_executable, FileName :: file:name_all()} | {fd, In :: integer() >= 0, Out :: integer() >= 0} Our method technically works but is strongly discouraged as it can block the scheduler and dialyzer throws errors as it recognizes we're breaking the contract and some of the functions we wrote may never return. This is indirectly covered by the Erlang FAQ section "9.12 Why can't I open devices (e.g. a serial port) like normal files?" https://www.erlang.org/faq/problems#idm1127 --- mix.exs | 1 + 1 file changed, 1 insertion(+) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index 541a60555..5e164dbdc 100644 --- a/mix.exs +++ b/mix.exs @@ -184,6 +184,7 @@ defmodule Pleroma.Mixfile do {:vix, "~> 0.26.0"}, {:elixir_make, "~> 0.7.7", override: true}, {:blurhash, "~> 0.1.0", hex: :rinpatch_blurhash}, + {:exile, "~> 0.8.0"}, ## dev & test {:ex_doc, "~> 0.22", only: :dev, runtime: false}, -- cgit v1.2.3 From fff235433e342e0377d3a064b084eeb7172e54e3 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 22 Jan 2024 13:31:00 -0500 Subject: Exile: switch to fork with BSD compile fix --- mix.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index 5e164dbdc..794d3aa54 100644 --- a/mix.exs +++ b/mix.exs @@ -184,7 +184,9 @@ defmodule Pleroma.Mixfile do {:vix, "~> 0.26.0"}, {:elixir_make, "~> 0.7.7", override: true}, {:blurhash, "~> 0.1.0", hex: :rinpatch_blurhash}, - {:exile, "~> 0.8.0"}, + {:exile, + git: "https://git.pleroma.social/pleroma/elixir-libraries/exile.git", + ref: "486f0695f3c8855343b46acdba7e45941487c275"}, ## dev & test {:ex_doc, "~> 0.22", only: :dev, runtime: false}, -- cgit v1.2.3 From 8efae57d67f327265176d21553ef57987fc540e8 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Sun, 21 Jan 2024 14:32:18 -0500 Subject: Dialyzer: suppress Mix.Task errors Callback info about the 'Elixir.Mix.Task' behaviour is not available. --- mix.exs | 1 + 1 file changed, 1 insertion(+) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index 794d3aa54..a8eacc54b 100644 --- a/mix.exs +++ b/mix.exs @@ -10,6 +10,7 @@ defmodule Pleroma.Mixfile do compilers: Mix.compilers(), elixirc_options: [warnings_as_errors: warnings_as_errors()], xref: [exclude: [:eldap]], + dialyzer: [plt_add_apps: [:mix]], start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps(), -- cgit v1.2.3 From bff47479a7a2344bc8e7e1caf1c876ea484b3134 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 22 Jan 2024 15:34:30 -0500 Subject: Exile: fix for MacOS dev environments --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index a8eacc54b..d332900de 100644 --- a/mix.exs +++ b/mix.exs @@ -187,7 +187,7 @@ defmodule Pleroma.Mixfile do {:blurhash, "~> 0.1.0", hex: :rinpatch_blurhash}, {:exile, git: "https://git.pleroma.social/pleroma/elixir-libraries/exile.git", - ref: "486f0695f3c8855343b46acdba7e45941487c275"}, + ref: "0d6337cf68e7fbc8a093cae000955aa93b067f91"}, ## dev & test {:ex_doc, "~> 0.22", only: :dev, runtime: false}, -- cgit v1.2.3 From 138b3cb608f7b87ec1c51d524db4e98a4c6d4bcf Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 22 Jan 2024 18:32:22 -0500 Subject: Clear up missing function dialyzer errors for :eldap --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index d332900de..a13c89c04 100644 --- a/mix.exs +++ b/mix.exs @@ -10,7 +10,7 @@ defmodule Pleroma.Mixfile do compilers: Mix.compilers(), elixirc_options: [warnings_as_errors: warnings_as_errors()], xref: [exclude: [:eldap]], - dialyzer: [plt_add_apps: [:mix]], + dialyzer: [plt_add_apps: [:mix, :eldap]], start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps(), -- cgit v1.2.3 From 0c5bec0493bc948a778ea5253e42713f1422742c Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Thu, 15 Feb 2024 09:45:48 -0500 Subject: Support Bandit as an alternate HTTP backend to Cowboy. This is currently considered experimental, but may improve performance and resource usage. --- mix.exs | 1 + 1 file changed, 1 insertion(+) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index a13c89c04..580f0aefc 100644 --- a/mix.exs +++ b/mix.exs @@ -188,6 +188,7 @@ defmodule Pleroma.Mixfile do {:exile, git: "https://git.pleroma.social/pleroma/elixir-libraries/exile.git", ref: "0d6337cf68e7fbc8a093cae000955aa93b067f91"}, + {:bandit, "~> 1.2"}, ## dev & test {:ex_doc, "~> 0.22", only: :dev, runtime: false}, -- cgit v1.2.3 From 4648997a1017da68dcf5235e527e861f2c85cf91 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Thu, 15 Feb 2024 10:06:37 -0500 Subject: Support a new changelog entry type: deps --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index 580f0aefc..582092aef 100644 --- a/mix.exs +++ b/mix.exs @@ -137,7 +137,7 @@ defmodule Pleroma.Mixfile do {:calendar, "~> 1.0"}, {:cachex, "~> 3.2"}, {:poison, "~> 3.0", override: true}, - {:tesla, "~> 1.4.0", override: true}, + {:tesla, "~> 1.8.0"}, {:castore, "~> 0.1"}, {:cowlib, "~> 2.9", override: true}, {:gun, "~> 2.0.0-rc.1", override: true}, -- cgit v1.2.3 From e149ee6e225667ca964e30a08179ca84b8537aaf Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 20 Feb 2024 09:16:36 +0100 Subject: Mergeback of security release 2.6.2 --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index 582092aef..b707a20a8 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Pleroma.Mixfile do def project do [ app: :pleroma, - version: version("2.6.51"), + version: version("2.6.52"), elixir: "~> 1.11", elixirc_paths: elixirc_paths(Mix.env()), compilers: Mix.compilers(), -- cgit v1.2.3 From 267e20dbcdbe9fcf0207f1873a624492a7206c21 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Fri, 23 Feb 2024 15:36:07 -0500 Subject: Exile: change to upstream pre-release commit that fixes build on FreeBSD --- mix.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mix.exs') diff --git a/mix.exs b/mix.exs index b707a20a8..3edae5046 100644 --- a/mix.exs +++ b/mix.exs @@ -186,8 +186,8 @@ defmodule Pleroma.Mixfile do {:elixir_make, "~> 0.7.7", override: true}, {:blurhash, "~> 0.1.0", hex: :rinpatch_blurhash}, {:exile, - git: "https://git.pleroma.social/pleroma/elixir-libraries/exile.git", - ref: "0d6337cf68e7fbc8a093cae000955aa93b067f91"}, + git: "https://github.com/akash-akya/exile.git", + ref: "be87c33b02a7c3c5d22d2ece01fbd462355b28ef"}, {:bandit, "~> 1.2"}, ## dev & test -- cgit v1.2.3