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 for retirement_reason spec. #150

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Fix for retirement_reason spec. #150

merged 2 commits into from
Jun 28, 2024

Conversation

paulo-ferraz-oliveira
Copy link
Contributor

@paulo-ferraz-oliveira paulo-ferraz-oliveira commented Jun 16, 2024

Closes #149.

Arguably, we could just have the code "accept" the binaries (as e.g. rebar3_hex is doing), and crash, since the spec is the intention that was passed, but with some backward compatibility I'm not sure the proposed solution will hurt.

This is a draft pr to follow-up on the discussion for the linked issue.

@paulo-ferraz-oliveira
Copy link
Contributor Author

paulo-ferraz-oliveira commented Jun 17, 2024

Updated as per #71 (for the "don't accept atoms AND binaries at the same time" part, not the "this is atoms or this is binaries" part).

@paulo-ferraz-oliveira paulo-ferraz-oliveira marked this pull request as ready for review June 19, 2024 18:14
@@ -14,9 +14,9 @@

-type publish_params() :: [{replace, boolean()}].

-type retirement_reason() :: other | invalid | security | deprecated | renamed.
-type retirement_reason() :: binary().
Copy link
Member

Choose a reason for hiding this comment

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

we don't use this type anymore anywhere, can you remove it while at it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wojtekmach wojtekmach merged commit de9b8c9 into hexpm:main Jun 28, 2024
7 checks passed
@wojtekmach
Copy link
Member

Thank you!

@paulo-ferraz-oliveira paulo-ferraz-oliveira deleted the fix/for-spec branch June 28, 2024 20:30
@paulo-ferraz-oliveira
Copy link
Contributor Author

Would you be Ok to do a patch-release for this, to be able to run with an updated version next to erlef/rebar3_hex#338? Thanks.

@wojtekmach
Copy link
Member

v0.10.3 is out!

@paulo-ferraz-oliveira
Copy link
Contributor Author

Thanks much, @wojtekmach.

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.

The spec for retirement_reason / retirement_params may be incorrect.
2 participants