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
kafka: remove old versions #105781
kafka: remove old versions #105781
Conversation
What is the usually procedure for such things? Wouldn't this cause eval errors if somone is still using one of these versions? Maybe we should add aliases which throws an error instead? Not sure. |
Yes, this will definitely cause eval errors if someone is using those. However, nobody should be running such ancient software so I consider this a good thing. Having aliases is probably quite dangerous because one needs to perform some manual steps when upgrading. |
Result of |
I would still prefer if we add aliases for those and warn about the upgrade steps. |
I am strongly against aliasing the old versions. I do think aliasing would make it very easy to shoot oneself in the foot. Let's say someone updates to a newer NixOS version but doesn't read the release notes too carefully. If he deploys the new version, this will silently upgrade Kafka and very likely cause downtime to the Kafka cluster. As Kafka is often used as highly-available message broker and as essential part of distributed systems, this needs to be avoided at all costs. I see two feasible options:
If we go with 2, we probably should mark all old versions as insecure as I highly doubt that Apache provides security updates for e.g. version 0.9 (released 2015). I think there is also precedent for having to manually update the package name, specifically postgresql. They are also somewhat similar as both Postgresql and Kafka usually require manual steps when performing upgrades between major versions and that they both often are critical services. |
I mean adding aliases that throw an error that we removed the package rather than redirecting to a later version. This is nicer as it tells the end user what changed rather than failing to evaluate their config. |
694f048
to
46fa43f
Compare
Ah sorry, I completely misunderstood 😄 I added a simple error message about having to upgrade. |
46fa43f
to
5fc0f85
Compare
5fc0f85
to
a63c1a9
Compare
@phile314 I think the eval error is fixed in master. Could you rebase? Otherwise the PR looks good to me. |
@ofborg eval |
Motivation for this change
Remove ancient kafka versions.
Things done
Removed old versions. I tried to verify that the nixos tests still succeed, but for me they fail both on this branch and current master.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)