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
ripgrep: 0.7.1 -> 0.8.0, install shell completions #34888
Conversation
@GrahamcOfBorg build ripgrep |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
|
||
preFixup = '' | ||
mkdir -p "$out/man/man1" | ||
cp "$src/doc/rg.1" "$out/man/man1" | ||
cp target/release/build/ripgrep-*/out/rg.1 "$out/man/man1/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I build with your changes locally and the manpage can be found in the following path: ./source/target/release/build/ripgrep-f969427e20cd23eb/out/rg.1.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manpage should be built from this file with a2x --no-xmllint --doctype manpage --format manpage rg.1.txt
(see https://github.com/BurntSushi/ripgrep/blob/master/build.rs#L73:L97).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh yeah :( Any idea why the correct file is not created?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to reproduce on NixOS and on other Linux distribution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, for me it still does not work. If you want, I can look at it tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can reproduce the error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I messed up. Sandboxing was actually disabled 🤦♂️
Now I can repro.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got it to work with asciidocFull
instead of asciidoc
(#34967). asciidoc
should also be added to buildInputs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't it be a native input? It's a build time dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you're right, it should be a native input.
pkgs/tools/text/ripgrep/default.nix
Outdated
|
||
mkdir -p "$out/share/"{bash-completion/completions,fish/completions,zsh/site-functions} | ||
cp target/release/build/ripgrep-*/out/rg.bash "$out/share/bash-completion/completions/" | ||
cp target/release/build/ripgrep-*/out/rg.fish "$out/share/fish/completions/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you install the fish completions on /share/fish/vendor_completions.d/
? It's where they are expected:
nixpkgs/nixos/modules/programs/fish.nix
Lines 168 to 172 in 57707ea
# include programs that bring their own completions | |
environment.pathsToLink = [] | |
++ optional cfg.vendor.config.enable "/share/fish/vendor_conf.d" | |
++ optional cfg.vendor.completions.enable "/share/fish/vendor_completions.d" | |
++ optional cfg.vendor.functions.enable "/share/fish/vendor_functions.d"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, thanks!
@GrahamcOfBorg build ripgrep |
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
@GrahamcOfBorg build ripgrep |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
@GrahamcOfBorg build ripgrep |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#080-2017-02-11
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)