-
Notifications
You must be signed in to change notification settings - Fork 601
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
The worker/2 function from the Supervisor.Spec module is deprecated #287
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we may have to update the Elixir used for the build in order to get this passing.
Update elixir-version in github worksflows to v1.5
Ok, updated to Elixir v1.5 |
@@ -21,7 +21,7 @@ jobs: | |||
- name: Set up Elixir | |||
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f | |||
with: | |||
elixir-version: '1.12.3' # Define the elixir version [required] | |||
elixir-version: '1.5' # Define the elixir version [required] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ What this meant to be 1.15? I think the latest is 1.16.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I should change to 1.16 instead, I made a new pull request by mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #288
Instead of using Supervisor.Spec.worker/2, you should define your child processes within the Supervisor module using the child_spec/1 function.