Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

ksonnet version 0.10.0-alpha.2 unable to import libsonnet files #464

@ankushagarwal

Description

@ankushagarwal

BUG REPORT

/kind bug

What happened:
I tried to generate a component from kubeflow prototype and the did a ks show default. It throws the following error:

ERROR find objects: RUNTIME ERROR: couldn't open import "kubeflow/core/all.libsonnet": no match locally or in the Jsonnet library paths
	<extvar:__ksonnet/components>:5:15-51	thunk <all> from <object <anonymous>>
	<extvar:__ksonnet/components>:10:32-35	thunk from <thunk from <object <anonymous>>>
	/tmp/2018-04-20-08-37-05/my-kubeflow/lib/v1.9.6/k.libsonnet:96:24-29	thunk from <function <anonymous>>
	/tmp/2018-04-20-08-37-05/my-kubeflow/lib/v1.9.6/k.libsonnet:97:36-41	thunk from <function <anonymous>>
	<builtin>	builtin function <type>
	<std>:1165:25-26	thunk from <thunk <ta> from <function <anonymous>>>
	<builtin>	builtin function <type>
	<std>:1167:29-31	thunk from <function <anonymous>>
	<builtin>	builtin function <primitiveEquals>
	<std>:1167:8-36	function <anonymous>

	/tmp/2018-04-20-08-37-05/my-kubeflow/lib/v1.9.6/k.libsonnet:96:13-30	function <anonymous>
	/tmp/2018-04-20-08-37-05/my-kubeflow/lib/v1.9.6/k.libsonnet:(92:22)-(96:30)	function <anonymous>
	<extvar:__ksonnet/components>:10:13-61	thunk from <object <anonymous>>
	<std>:1216:24-25	thunk from <thunk <t> from <function <anonymous>>>
	<builtin>	builtin function <type>
	<std>:1217:8-9	function <anonymous>
	<std>:1165:25-26	thunk from <thunk <ta> from <function <anonymous>>>
	<builtin>	builtin function <type>
	<std>:1167:29-31	thunk from <function <anonymous>>
	<builtin>	builtin function <primitiveEquals>
	<std>:1167:8-36	function <anonymous>

	<extvar:__ksonnet/components>:10:3-62	object <anonymous>
	During manifestation

What you expected to happen:
It should show the yaml file instead of throwing an error

How to reproduce it (as minimally and precisely as possible):

ks init my-kubeflow
cd my-kubeflow
ks registry add kubeflow github.com/kubeflow/kubeflow/tree/master/kubeflow
ks pkg install kubeflow/core@master
ks generate core kubeflow-core --name=kubeflow-core
ks show default -c kubeflow-core

This works perfectly fine with 0.9.2

Environment:

  • ksonnet version (use ks version):
    0.10.0-alpha.2
  • Kubernetes version (use kubectl version):
    1.10

/cc @bryanl

Cross Referencing kubeflow/kubeflow#686

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions