projectsyn / component-prometheus

Commodore component to wrap kube-prometheus jsonnet library.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Mssing import mixin-utils/utils.libsonnet #93

Open megian opened 4 months ago

megian commented 4 months ago

The compilation does error out.

Steps to Reproduce the Problem

  1. Compile component-prometheus with the grafana/jsonnet-libs#1285

Actual Behavior

Jsonnet error: failed to compile /builds/vshn/syn-tenant-repo/vendor/prometheus/component/main.jsonnet:
 RUNTIME ERROR: couldn't open import "mixin-utils/utils.libsonnet": [Errno 2] No such file or directory: '/builds/vshn/syn-tenant-repo/vendor/github.com/grafana/jsonnet-libs/grafana-builder/mixin-utils/utils.libsonnet'
    /builds/vshn/syn-tenant-repo/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet:1:15-51   thunk <utils>
    /builds/vshn/syn-tenant-repo/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet:335:29-34 thunk <isNativeClassic>
    /builds/vshn/syn-tenant-repo/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet:346:12-27 object <anonymous>
    std.jsonnet:1037:43-47  thunk <v>
    std.jsonnet:1009:10 thunk <a>
    std.jsonnet:1009:10-19  function <anonymous>
    std.jsonnet:1009:10-19  function <aux>
    std.jsonnet:1037:39-78  thunk <array_element>
    std.jsonnet:1041:9-28   function <aux>
    std.jsonnet:1027:50-83  thunk <array_element>
    ...
    std.jsonnet:1031:9-28   function <aux>
    std.jsonnet:1037:39-78  thunk <array_element>
    std.jsonnet:1041:9-28   function <aux>
    std.jsonnet:1042:5-23   function <anonymous>
    /builds/vshn/syn-tenant-repo/vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet:100:25-79    object <anonymous>
    /builds/vshn/syn-tenant-repo/vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet:100:15-81    object <anonymous>
    /builds/vshn/syn-tenant-repo/vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet:(93:7)-(101:8)   thunk <array_element>
    /builds/vshn/syn-tenant-repo/vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet:(92:12)-(132:6)  object <anonymous>
    std.jsonnet:263:7-62    object <anonymous>
    During manifestation    
Compile error: failed to compile target: prometheus

Expected Behavior

Compiles.

megian commented 4 months ago

Using the dependency before the grafana/jsonnet-libs#1285 seems to work #94.