Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version check for Elixir #76

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

wojtekmach
Copy link
Contributor

Prior to this patch, we couldn't use this package because it was crashing when using Elixir pre-releases (here, 1.18.0-dev):

== Compilation error in file lib/x509/logger.ex ==
** (ArgumentError) errors were found at the given arguments:

  * 1st argument: not a textual representation of an integer

    :erlang.binary_to_integer("0-dev")
    (elixir 1.18.0-dev) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
    (elixir 1.18.0-dev) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
    lib/x509/logger.ex:7: (module)

This is now fixed. X509.Util.app_version/1 is still used in a couple other places but just for applications that ship with OTP and they should not have this problem.

Prior to this patch, we couldn't use this package because it was
crashing when using Elixir pre-releases (here, 1.18.0-dev):

    == Compilation error in file lib/x509/logger.ex ==
    ** (ArgumentError) errors were found at the given arguments:

      * 1st argument: not a textual representation of an integer

        :erlang.binary_to_integer("0-dev")
        (elixir 1.18.0-dev) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
        (elixir 1.18.0-dev) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
        lib/x509/logger.ex:7: (module)

This is now fixed. `X509.Util.app_version/1` is still used in a couple
other places but just for applications that ship with OTP and they
should not have this problem.
@wojtekmach wojtekmach force-pushed the wm-fix-version-check branch from 8336a5c to 17cb3bb Compare June 27, 2024 08:25
@voltone voltone merged commit cfb852e into voltone:master Jun 27, 2024
11 checks passed
@voltone
Copy link
Owner

voltone commented Jun 27, 2024

Thanks!

@wojtekmach wojtekmach deleted the wm-fix-version-check branch June 27, 2024 10:37
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.

2 participants