1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

go-task: fail on unsuccessful substitution instead of warn

This commit is contained in:
German Lashevich 2024-09-02 15:36:47 +02:00 committed by GitHub
parent afefcacba6
commit 26ba28ed1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,11 +48,11 @@ buildGoModule rec {
installShellCompletion completion/{bash,fish,zsh}/*
substituteInPlace $out/share/bash-completion/completions/task.bash \
--replace-warn 'complete -F _task task' 'complete -F _task task go-task'
--replace-fail 'complete -F _task task' 'complete -F _task task go-task'
substituteInPlace $out/share/fish/vendor_completions.d/task.fish \
--replace-warn 'complete -c $GO_TASK_PROGNAME' 'complete -c $GO_TASK_PROGNAME -c go-task'
--replace-fail 'complete -c $GO_TASK_PROGNAME' 'complete -c $GO_TASK_PROGNAME -c go-task'
substituteInPlace $out/share/zsh/site-functions/_task \
--replace-warn '#compdef task' '#compdef task go-task'
--replace-fail '#compdef task' '#compdef task go-task'
'';
passthru.tests = {