How do I use the -check-config
option?
#109
-
I've written a small NixOS module for Glance for myself and was looking to add build-time validation for the config file but can't seem to figure out how to get it working. When I run Just wanted to quickly check if this is intentional behavior or something you'd be open to changing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey, You are using it correctly, it's just that the weather widget is the only exception which makes an HTTP request during validation. It works that way due to Open Meteo's weather data endpoint requiring coordinates rather than location name which are retrieved once during the validation step. Multiple people have been unpleasantly surprised by this so I'll change it and make the retrieval of the coordinates happen during the widget update step instead, meaning that not having internet won't prevent the application from starting anymore. Expect to see the change in the next release and sorry for the confusion! |
Beta Was this translation helpful? Give feedback.
Hey,
You are using it correctly, it's just that the weather widget is the only exception which makes an HTTP request during validation. It works that way due to Open Meteo's weather data endpoint requiring coordinates rather than location name which are retrieved once during the validation step.
Multiple people have been unpleasantly surprised by this so I'll change it and make the retrieval of the coordinates happen during the widget update step instead, meaning that not having internet won't prevent the application from starting anymore. Expect to see the change in the next release and sorry for the confusion!