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 data-eating behavior of Repo.ReadNames() and friends #73

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

intelfx
Copy link
Contributor

@intelfx intelfx commented Mar 10, 2024

Do not overload semantics of functions based on its parameters, especially if it's a variadic.

Fixes #71.

It is a bad idea to drastically change the semantics of a function
depending on (the number of) its arguments, especially if it's variadic.

Split Repo.ReadNames() into two separate functions with fixed semantics,
and inspect every call site to use one or the other accordingly.
It does not really matter because all errors are eaten by the handler,
but still a good thing to do for uniformity.
@cassava
Copy link
Owner

cassava commented Mar 11, 2024

Looks good! Many thanks for your contribution @intelfx!

@cassava cassava merged commit 534eb15 into cassava:master Mar 11, 2024
2 checks passed
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.

Repoctl deletes packages on 'unknown' entry in .PKGINFO
2 participants