Skip to content
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

Mssing import mixin-utils/utils.libsonnet #93

Open
megian opened this issue Jul 18, 2024 · 1 comment
Open

Mssing import mixin-utils/utils.libsonnet #93

megian opened this issue Jul 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@megian
Copy link
Contributor

megian commented Jul 18, 2024

The compilation does error out.

Steps to Reproduce the Problem

  1. Compile component-prometheus with the grafana-builder: add support for native/classic stat panel query 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 megian added the bug Something isn't working label Jul 18, 2024
@megian
Copy link
Contributor Author

megian commented Jul 18, 2024

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

@megian megian changed the title Imssing import mixin-utils/utils.libsonnet Mssing import mixin-utils/utils.libsonnet Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant