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

"ks apply" fails to correctly process paths in Windows shell #382

Open
pdmack opened this issue Mar 23, 2018 · 3 comments
Open

"ks apply" fails to correctly process paths in Windows shell #382

pdmack opened this issue Mar 23, 2018 · 3 comments

Comments

@pdmack
Copy link

pdmack commented Mar 23, 2018

/kind bug

What happened:
ksonnet.exe apply default using the guestbook tutorial instructions on Windows.

←[31mERROR ←[0mCreateFile C:\ks-example\components\C:\ks-example\components: The filename, directory name, or volume label syntax is incorrect.

What you expected to happen:
ksonnet.exe apply default return successfully.

How to reproduce it (as minimally and precisely as possible):
Follow the ksonnet guestbook tutorial in a Windows shell environment.

Anything else we need to know?:
Recent release (0.9.1) has related problem:

←[31mERROR ←[0mgenerate objects for namespace C:\ks-example\components\: unable to read C:\ks-example/environments/default/main.jsonnet: <extvar:__ksonnet/components>:2:4-41 Unknown escape sequence in string literal: \k
  "←[31mC:\ks-example\components\guestbook-ui←[0m": import "C:\ks-example\components\guestbook-ui.jsonnet",

Environment: Windows 7, 10; MinGW bash, cmd.exe, PowerShell

  • ksonnet version (use ks version):
    ksonnet version: (dev build)
    jsonnet version: v0.10.0
    client-go version: 1.8

  • Kubernetes version (use kubectl version):
    v1.9.1+a0ce1bc657

@bryanl
Copy link
Member

bryanl commented Mar 24, 2018

There are a few items in ksonnet that may not be windows compatible. Working to get these cleaned up by the 0.10 release.

@andrewsav-bt
Copy link

Hello, @bryanl it appears that 0.10 release you mentioned above has been and gone. Could you please update on status of this?

@IMBurbank
Copy link

This issue seems to be the same as #538. Whether using show or apply, the environment is duplicating the component path. I'm trying to dig in and figure out where this is coming from, but so far my low level of Go competency has been an impediment.

Any pointers would be appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants