-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
installShellFiles: ensure shell completion has more than 256 bytes #247099
base: staging
Are you sure you want to change the base?
Conversation
Running nixpkgs-review to find other examples like terraform |
I found an error in the completion script of tmuxp which were outputting an error message instead of a proper script so a sanity check in the installShellCompletion script is helpful to avoid this to happen in the future. After looking at possible ways to detect this, the only valid check I found was based on the generated file size as any completion script I could find had more than 256 bytes. Signed-off-by: Otavio Salvador <[email protected]>
Signed-off-by: Otavio Salvador <[email protected]>
19d1eb9
to
32c275a
Compare
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 think you should rename that terraform commit to a treewide one and move the package fixes to that commit.
nixpkgs-review is doing nix log with all the failed derivations and it will take some time
Status? |
@Artturin it is ready, I'd need a full build log to fix any breakage of packages. |
Description of changes
I found an error in the completion script of tmuxp which were outputting
an error message instead of a proper script so a sanity check in the
installShellCompletion script is helpful to avoid this to happen in the
future.
After looking at possible ways to detect this, the only valid check I
found was based on the generated file size as any completion script I
could find had more than 256 bytes.
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/
)