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 building with Elixir 1.15 #1075

Merged
merged 1 commit into from
Oct 1, 2023

Conversation

frerich
Copy link
Contributor

@frerich frerich commented Sep 30, 2023

This upgrades the ssl_verify_fun dependency from 1.1.6 to 1.1.7, fixing builds with Elixir 1.15 which would run into errors like

==> ssl_verify_fun
Compiling 7 files (.erl)
src/ssl_verify_fun_cert_helpers.erl:13:14: can't find include lib "public_key/include/public_key.hrl"
%   13| -include_lib("public_key/include/public_key.hrl").
%     |
...
src/ssl_verify_hostname.erl:76:38: record 'OTPCertificate' undefined
%   76|                              Cert :: #'OTPCertificate'{},
%     |                                      ^

could not compile dependency :ssl_verify_fun, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ssl_verify_fun --force", update it with "mix deps.update ssl_verify_fun" or clean it with "mix deps.clean ssl_verify_fun"

This was triggered by CI builds such as https://github.com/rrrene/credo/actions/runs/6364529751/job/17280859870?pr=1074.

Cf. deadtrickster/ssl_verify_fun.erl#27 for further discussion.

This fixes building with Elixir 1.15, avoiding error messages like

```
==> ssl_verify_fun
Compiling 7 files (.erl)
src/ssl_verify_fun_cert_helpers.erl:13:14: can't find include lib "public_key/include/public_key.hrl"
%   13| -include_lib("public_key/include/public_key.hrl").
%     |
...
src/ssl_verify_hostname.erl:76:38: record 'OTPCertificate' undefined
%   76|                              Cert :: #'OTPCertificate'{},
%     |                                      ^

could not compile dependency :ssl_verify_fun, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ssl_verify_fun --force", update it with "mix deps.update ssl_verify_fun" or clean it with "mix deps.clean ssl_verify_fun"
```
@frerich frerich changed the title Fix building with Elixir 1.15Upgrade ssl_verify_fun from 1.1.6 to 1.1.7 Fix building with Elixir 1.15 Sep 30, 2023
@rrrene rrrene closed this Oct 1, 2023
@rrrene rrrene reopened this Oct 1, 2023
@rrrene
Copy link
Owner

rrrene commented Oct 1, 2023

Fat fingers, sorry 👍

@rrrene rrrene merged commit 320a09a into rrrene:master Oct 1, 2023
20 checks passed
@frerich frerich deleted the fix-building-with-elixir-1.15 branch October 1, 2023 18:50
@rrrene
Copy link
Owner

rrrene commented Oct 1, 2023

@frerich This is now live in Credo 1.7.1: https://hex.pm/packages/credo/1.7.1

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