-
Notifications
You must be signed in to change notification settings - Fork 77
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
Failed to manifest dashboard when modifying lib #555
Comments
This is NOT a bug in Grizzly. You are attempting to run the Grafonnet examples, particularly the redMethod one, but you are using the library main.libsonnet as the entry point. That library is designed to be used by other jsonnet code, not to be run directly. Instead, you should call the examples/redMethod/main.libsonnet file. This one should load everything correctly. |
I'm a bit confused as I specifically call grizzly with Is there something wrong in my reproducer? |
Can you execute |
I could have been more explicit in the introduction. If this is not a bug, what is the best way to structure your dashboards and lib while keeping the watch features that does not throw an error like |
Grizzly Version
0.6.1
Expected Behavior
Dashboards manifestion works without error when any of the files in the watchList are modified.
Actual Behavior
Users might want to create reusable lib. As such they will start grizzly and watch several path. This is similar to what is documented here https://grafana.github.io/grizzly/server/, this is also what is done in [grafonnet examples(https://github.com/grafana/grafonnet/tree/main/examples/redMethod). Depending on what you are work on, user could edit either the dashboard itself or the underlying reusable lib.
However when grizzly detect a change in the underlying lib the manifestion fails
In this case, user could workaround the error by restarting grizzly at each change but it is cumbersome and make the watch feature less useful.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: