nixos-search icon indicating copy to clipboard operation
nixos-search copied to clipboard

flake-info: fix compilation warnings

Open ncfavier opened this issue 3 years ago • 4 comments

Removes some dead code, including the unimplemented --elastic-user, --elastic-pw and --gc flags. Builds and tests with no warnings.

ncfavier avatar Jul 22 '22 11:07 ncfavier

--gc is used though You can (could?) run the import on a fresh store which the gc flag would clean up after completion. I dont know if that is still useful to anyone though and could probably be implemented by just passing extra nix arguments

ysndr avatar Jul 28 '22 08:07 ysndr

for the elastic-pw/user one I wonder if it would be better to implement these rather than remove them and use those flags rather than the url encoded authentication

ysndr avatar Jul 28 '22 08:07 ysndr

--gc is used though You can (could?) run the import on a fresh store which the gc flag would clean up after completion. I dont know if that is still useful to anyone though and could probably be implemented by just passing extra nix arguments

It's not used. The run_gc function is never called. So I think it's safe to assume it's not useful to anyone :)

for the elastic-pw/user one I wonder if it would be better to implement these rather than remove them and use those flags rather than the url encoded authentication

Sure, we can do that in a follow-up PR, I'm just commenting them out for now.

ncfavier avatar Jul 28 '22 09:07 ncfavier

I agree in both points

ysndr avatar Jul 28 '22 10:07 ysndr

@ysndr could you approve please?

ncfavier avatar Aug 29 '22 12:08 ncfavier

Thanks

ncfavier avatar Aug 29 '22 15:08 ncfavier