-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
kubo: 0.20.0 -> 0.21.0 #241481
kubo: 0.20.0 -> 0.21.0 #241481
Conversation
Yes, because the migration is run only once while the NixOS module replaces the config file every time. The user configuration is also applied after the migration. |
@Luflosi: thank you for the review. I'll go take a look at the module and check out how to do that. |
@Luflosi I didn't realise ofborg would automatically re-asked a review. The current change for the module don't yet work as I'm getting this error when evaluating:
|
Seems like that setting hasn't existed / doesn't exist in the module It would be part of the definition on lines ~179 onwards:
Without the rename works fine, would suggest to limit this pull request to the update and open a second PR focused on tweaking the settings of the nixos module. |
OK so |
I'm OK with this, @Luflosi would that be fine for you too? If so I'll remove the |
I'm a little worried that some people on the unstable channel have this option set and I don't know what will happen in that case. |
@Luflosi thank you for taking a look, it's a bit over my Nix/Nixpkgs knowledge 😅 |
I would guess that
If it's not a true option, it's not guaranteed to exist, and cc @infinisil |
Yes, exactly.
I mean if a normal option gets renamed, the old option also no longer exists, right? So how would this situation be different? Shouldn't this be what So is the problem here that the option is a child of If all else fails, I can just write an assertion but I'd prefer a nicer solution as I can imagine that this situation is not exclusive to the Kubo module. |
That's not really the case. They do stick around. The fact renames are implemented by a module instead of a built-in feature sort of hints at that, but is by no means obvious. Normally it's not a problem because we don't take
It's not even an option, but yes, it is a child of
The current behavior does serve as a protection against typos IIUC, so I think all three functions have their own use case to serve. |
@Mayeu can you add an assertion to the existing list of assertions instead? I think something like this should work: {
assertion = !((lib.versionAtLeast cfg.package.version "0.21") && (builtins.hasAttr "Experimental" cfg.settings) && (builtins.hasAttr "AcceleratedDHTClient" cfg.settings.Experimental));
message = ''
The `services.kubo.settings.Experimental.AcceleratedDHTClient` option was renamed to `services.kubo.settings.Routing.AcceleratedDHTClient` in Kubo 0.21.
'';
} I haven't tested this yet though. |
@Luflosi thanks, I tested with and without the AcceleratedDHT setting and it works as intended 👍 |
What's the next step to get this merged in, any one of you have write access to the repo? |
I don't have commit access |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1044 |
Someone please merge this, I have issues running the 0.20.0 (see ipfs/kubo#10056). Maybe this resolves the issue... |
@K900: thank you for merging this 🙏 |
Description of changes
https://github.com/ipfs/kubo/releases/tag/v0.21.0
The AcceleratedDHT experimental configuration flag graduated to stable, kubo should auto migrate the configuration, but I'm unsure if we should also warn the user via the module?
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Since I'm on macOS I wasn't able to run the package tests, they seems to be linux only.