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

horus.app: Add erts to application dependencies #15

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

dumbbell
Copy link
Member

Why

Horus relies on the availability of erts to initialize the list of modules to skip when it needs to decide if a call should be followed to extract a function or if the call should be preserved as is.

It already depends on kernel and stdlib for instance. I assumed that erts was implicit as I don't see how Erlang can work without it. It looks like if erts is not included explicitly in an Erlang release file or in the applications it bundles, it is excluded from the release (the erts Erlang application, not the actual runtime). This breaks Horus because it won't know about e.g. the erlang module and will try and fail to extract functions from that module.

Fixes #14.

[Why]
Horus relies on the availability of `erts` to initialize the list of
modules to skip when it needs to decide if a call should be followed to
extract a function or if the call should be preserved as is.

It already depends on `kernel` and `stdlib` for instance. I assumed that
`erts` was implicit as I don't see how Erlang can work without it. It
looks like if `erts` is not included explicitly in an Erlang release
file or in the applications it bundles, it is excluded from the release
(the `erts` Erlang application, not the actual runtime). This breaks
Horus because it won't know about e.g. the `erlang` module and will try
and fail to extract functions from that module.

Fixes #14.
@dumbbell dumbbell added the bug Something isn't working label Aug 21, 2023
@dumbbell dumbbell added this to the v0.2.4 milestone Aug 21, 2023
@dumbbell dumbbell self-assigned this Aug 21, 2023
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (38dafa8) 86.05% compared to head (6136414) 86.05%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #15   +/-   ##
=======================================
  Coverage   86.05%   86.05%           
=======================================
  Files           3        3           
  Lines         918      918           
=======================================
  Hits          790      790           
  Misses        128      128           
Flag Coverage Δ
erlang-24 81.37% <ø> (ø)
erlang-25 83.33% <ø> (ø)
erlang-26 77.99% <ø> (ø)
os-ubuntu-latest 86.05% <ø> (ø)
os-windows-latest 83.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dumbbell dumbbell marked this pull request as ready for review August 21, 2023 09:00
@dumbbell dumbbell merged commit 47b4295 into main Aug 21, 2023
10 checks passed
@dumbbell dumbbell deleted the add-erts-to-dependencies branch August 21, 2023 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add erts as an explicit dependency
1 participant