Skip to content

Upgrade Elixir, OTP and runner image#164

Merged
Annopaolo merged 6 commits intoastarte-platform:masterfrom
Emina-M:upgrade-elixir-otp
Jan 15, 2025
Merged

Upgrade Elixir, OTP and runner image#164
Annopaolo merged 6 commits intoastarte-platform:masterfrom
Emina-M:upgrade-elixir-otp

Conversation

@Emina-M
Copy link
Contributor

@Emina-M Emina-M commented Jan 10, 2025

  • Upgrade to Elixir 1.16.3 and OTP 24.3.4.17. Use Debian runner image.
  • Adapt code for Cyanide 2.0 binaries.
  • Resolve warning about :gettext compiler
  • Resolve warning about Mix.Config module
  • Resolve warning about Logger.warn function
  • Resolve warning about using Application.get_env/3
  • Resolve warning about unused variables

@Emina-M Emina-M force-pushed the upgrade-elixir-otp branch 4 times, most recently from 47b7702 to 34a56e2 Compare January 15, 2025 08:55

v when is_map(v) ->
Enum.reduce_while(v, {:ok, %{}}, fn {item_key, item_value}, {:ok, acc} ->
Enum.reduce_while(Map.to_list(v), {:ok, %{}}, fn {item_key, item_value}, {:ok, acc} ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maps implement the Enumerable protocol, so there is no need to use to_list/1

Upgrade to Elixir 1.16.3 and OTP 24.3.4.17. Use Debian runner image.
Adapt code for Cyanide 2.0 binaries.

Signed-off-by: Emina Muminovic <emina.muminovic@secomind.com>
The :gettext compiler is no longer required in mix.exs file and is
therefore removed.

Signed-off-by: Emina Muminovic <emina.muminovic@secomind.com>
Mix.Config is deprecated and is therefore replaced with Config module.

Signed-off-by: Emina Muminovic <emina.muminovic@secomind.com>
Logger.warn is deprecated and therefore replaced with Logger.warning
Log level atom :warn for tests is replaced with :warning

Signed-off-by: Emina Muminovic <emina.muminovic@secomind.com>
Application.get_env/3 is discouraged in the module body, therefore
Application.compile_env/3 is used instead.

Signed-off-by: Emina Muminovic <emina.muminovic@secomind.com>
Use underscore to avoid warning about unused variables.

Signed-off-by: Emina Muminovic <emina.muminovic@secomind.com>
@Emina-M Emina-M force-pushed the upgrade-elixir-otp branch from 34a56e2 to 2c13c5d Compare January 15, 2025 10:29
@Annopaolo Annopaolo merged commit 05ccf1e into astarte-platform:master Jan 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants