-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/loki: Implement configuration verification #311999
Conversation
@@ -99,9 +99,16 @@ in { | |||
conf = if cfg.configFile == null | |||
then prettyJSON cfg.configuration | |||
else cfg.configFile; | |||
validateConfig = file: | |||
pkgs.runCommand "validate-loki-conf" { | |||
nativeBuildInputs = [ pkgs.grafana-loki ]; |
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.
This should use cfg.package
not pkgs.grafana-loki
:(
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'll provide the PR to fix this, I should have seen this.
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 we make this optional? If you use
|
Thanks for reporting! Taking a second look it's not just
I am tempted to add a conditional to only ever run that config validation/verification step if both Not sure if you are asking for a boolean option in Will open a PR with my proposed fix shortly. |
I was thinking of a boolean option, similar to |
Description of changes
Fixes: #293088
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 馃憤 reaction to pull requests you find important.