From 13ba013a2451afdb3e52f59f429d74da7ee0e84b Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Tue, 20 Oct 2020 11:42:30 +0200 Subject: [PATCH] Use absolute jsonnet import paths This should be the way forward when importing libraries in jsonnet. It's closer to how Go imports look and makes it more obvious where packages live. This is not breaking anything, as the old imports were already symlinks to the now directly used directories. Signed-off-by: Matthias Loibl --- documentation/prometheus-mixin/dashboards.libsonnet | 4 ++-- documentation/prometheus-mixin/jsonnetfile.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/prometheus-mixin/dashboards.libsonnet b/documentation/prometheus-mixin/dashboards.libsonnet index 1c4521b0a..31cea1021 100644 --- a/documentation/prometheus-mixin/dashboards.libsonnet +++ b/documentation/prometheus-mixin/dashboards.libsonnet @@ -1,5 +1,5 @@ -local g = import 'grafana-builder/grafana.libsonnet'; -local grafana = import 'grafonnet/grafana.libsonnet'; +local grafana = import 'github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet'; +local g = import 'github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet'; local dashboard = grafana.dashboard; local row = grafana.row; local singlestat = grafana.singlestat; diff --git a/documentation/prometheus-mixin/jsonnetfile.json b/documentation/prometheus-mixin/jsonnetfile.json index c45a96b03..1c64fd015 100644 --- a/documentation/prometheus-mixin/jsonnetfile.json +++ b/documentation/prometheus-mixin/jsonnetfile.json @@ -20,5 +20,5 @@ "version": "master" } ], - "legacyImports": true + "legacyImports": false }