carlosedp / cluster-monitoring

Cluster monitoring stack for clusters based on Prometheus Operator
MIT License
740 stars 200 forks source link

Getting 'couldn't open import "arm_exporter.jsonnet"' since file reorg #48

Closed geerlingguy closed 4 years ago

geerlingguy commented 4 years ago

Since the reorganization, I'm getting the following error when running make:

---
changed: false
cmd: "/usr/bin/make"
msg: "+ set -o pipefail\n+ rm -rf manifests\n+ mkdir -p manifests/setup\n+ xargs '-I{}'
  sh -c 'cat {} | $(go env GOPATH)/bin/gojsontoyaml > {}.yaml; rm -f {}' -- '{}'\n+
  /home/pirate/go/bin/jsonnet -J vendor -m manifests main.jsonnet\nRUNTIME ERROR:
  couldn't open import \"arm_exporter.jsonnet\": no match locally or in the Jsonnet
  library paths\n\tvars.jsonnet:16:13-42\tobject <anonymous>\n\tmain.jsonnet:9:34-45\tthunk
  from <thunk from <thunk <kp> from <$>>>\n\tutils.libsonnet:20:35-41\tthunk from
  <function <aux>>\n\tutils.libsonnet:20:9-42\tfunction <aux>\n\tutils.libsonnet:21:5-21\tfunction
  <anonymous>\n\tmain.jsonnet:9:14-92\tthunk <kp> from <$>\n\tmain.jsonnet:18:86-88\t\n\t<std>:1293:24-25\tthunk
  from <function <anonymous>>\n\t<std>:1293:5-33\tfunction <anonymous>\n\tmain.jsonnet:18:69-104\t$\n\t\t\n\t\t\n\tDuring
  evaluation\t\n\nmake: *** [Makefile:19: manifests] Error 1"
rc: 2
stderr: "+ set -o pipefail\n+ rm -rf manifests\n+ mkdir -p manifests/setup\n+ xargs
  '-I{}' sh -c 'cat {} | $(go env GOPATH)/bin/gojsontoyaml > {}.yaml; rm -f {}' --
  '{}'\n+ /home/pirate/go/bin/jsonnet -J vendor -m manifests main.jsonnet\nRUNTIME
  ERROR: couldn't open import \"arm_exporter.jsonnet\": no match locally or in the
  Jsonnet library paths\n\tvars.jsonnet:16:13-42\tobject <anonymous>\n\tmain.jsonnet:9:34-45\tthunk
  from <thunk from <thunk <kp> from <$>>>\n\tutils.libsonnet:20:35-41\tthunk from
  <function <aux>>\n\tutils.libsonnet:20:9-42\tfunction <aux>\n\tutils.libsonnet:21:5-21\tfunction
  <anonymous>\n\tmain.jsonnet:9:14-92\tthunk <kp> from <$>\n\tmain.jsonnet:18:86-88\t\n\t<std>:1293:24-25\tthunk
  from <function <anonymous>>\n\t<std>:1293:5-33\tfunction <anonymous>\n\tmain.jsonnet:18:69-104\t$\n\t\t\n\t\t\n\tDuring
  evaluation\t\n\nmake: *** [Makefile:19: manifests] Error 1\n"
stderr_lines:
- "+ set -o pipefail"
- "+ rm -rf manifests"
- "+ mkdir -p manifests/setup"
- "+ xargs '-I{}' sh -c 'cat {} | $(go env GOPATH)/bin/gojsontoyaml > {}.yaml; rm
  -f {}' -- '{}'"
- "+ /home/pirate/go/bin/jsonnet -J vendor -m manifests main.jsonnet"
- 'RUNTIME ERROR: couldn''t open import "arm_exporter.jsonnet": no match locally or
  in the Jsonnet library paths'
- "\tvars.jsonnet:16:13-42\tobject <anonymous>"
- "\tmain.jsonnet:9:34-45\tthunk from <thunk from <thunk <kp> from <$>>>"
- "\tutils.libsonnet:20:35-41\tthunk from <function <aux>>"
- "\tutils.libsonnet:20:9-42\tfunction <aux>"
- "\tutils.libsonnet:21:5-21\tfunction <anonymous>"
- "\tmain.jsonnet:9:14-92\tthunk <kp> from <$>"
- "\tmain.jsonnet:18:86-88\t"
- "\t<std>:1293:24-25\tthunk from <function <anonymous>>"
- "\t<std>:1293:5-33\tfunction <anonymous>"
- "\tmain.jsonnet:18:69-104\t$"
- "\t\t"
- "\t\t"
- "\tDuring evaluation\t"
- ''
- 'make: *** [Makefile:19: manifests] Error 1'
stdout: |
  rm -rf manifests
  ./scripts/build.sh main.jsonnet /home/pirate/go/bin/jsonnet
  using jsonnet from arg
stdout_lines:
- rm -rf manifests
- "./scripts/build.sh main.jsonnet /home/pirate/go/bin/jsonnet"
- using jsonnet from arg
geerlingguy commented 4 years ago

Oops... I need to update my vars.jsonnet file to match the updated file paths.

geerlingguy commented 4 years ago

Testing with updated vars file.

geerlingguy commented 4 years ago

That was it, sorry for the noise!