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

nix-zsh-completions: 0.3.6 -> 0.3.7, nix-bash-completions: 0.6.1 -> 0.6.2 #33595

Closed
wants to merge 2 commits into from

Conversation

hedning
Copy link
Contributor

@hedning hedning commented Jan 8, 2018

Motivation for this change

Fixes a regression where .nix files containing a set, not a function, failed to produce completions. ref: nix-community/nix-zsh-completions#8

Things done

Tested installation and basic functionality via nix-env.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@dtzWill
Copy link
Member

dtzWill commented Jan 8, 2018

LGTM.

@bjornfor
Copy link
Contributor

Applied to master (c646114, 122904f). Thanks!

(I'll backport to release-17.09 later.)

@bjornfor bjornfor closed this Jan 10, 2018
@bjornfor
Copy link
Contributor

Commit f79d691 ("nix-bash-completions: lazy load aware install") hasn't yet been backported, but is a dependency of this PR. Is it correct to backport it?

@hedning
Copy link
Contributor Author

hedning commented Jan 11, 2018

@bjornfor it should work, but will source the script many times on startup. So might be bad for performance, might be better to wait.

@hedning
Copy link
Contributor Author

hedning commented Jan 11, 2018

Ah, misread it a bit. I'm guessing we can't backport this when f79d691 isn't packported too (which is the one that would cause bash startup time to increase). I'm guessing the best thing is to wait?

@bjornfor
Copy link
Contributor

Wait for what? (I won't backport anything unless someone says it's OK.)

@hedning
Copy link
Contributor Author

hedning commented Jan 12, 2018

As in wait for #32534 to hit stable (either through backporting or 18.03). Did some timing and backporting f79d691 will increase bash startup time with 0.1s+ in the best case scenario (hot cache), which is far from ideal.

@dtzWill
Copy link
Member

dtzWill commented Jan 12, 2018

So..if we backport #32534, f79d6991, and this, things will be good?

(I think you're saying grabbing the commit without #32534 would be rather bad for startup performance, right?)

Is there a reason to wait to do this?

(Needs more testing, breaking change?)

@hedning
Copy link
Contributor Author

hedning commented Jan 12, 2018

So..if we backport #32534, f79d6991, and this, things will be good?

There's #33704 where the completion script have a name which isn't picked up by the lazy loading (relevant PR: #33717). Doing a quick search of of nixpkgs the package memo have the same problem.

(I think you're saying grabbing the commit without #32534 would be rather bad for startup performance, right?)

Yeah.

Is there a reason to wait to do this?
(Needs more testing, breaking change?)

Apart from the issue with taskwarrior and memo not that I know of, though there might be other packages which use a non-standard name for the completion script which escaped my quick search. So to not break anything we would need to backport fixes for taskwarrior and memo too.

@hedning
Copy link
Contributor Author

hedning commented Jan 12, 2018

Also the above stuff only applies to bash of course, so there shouldn't be any problems backporting the zsh completions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants