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

context directories with backslashes on Windows do not work #5074

Closed
briandealwis opened this issue Nov 27, 2020 · 0 comments · Fixed by #5177
Closed

context directories with backslashes on Windows do not work #5074

briandealwis opened this issue Nov 27, 2020 · 0 comments · Fixed by #5177
Labels
area/ux kind/bug Something isn't working platform/windows priority/p2 May take a couple of releases

Comments

@briandealwis
Copy link
Member

From StackOverflow where a user was attempting to build a project from skaffold init on Windows

Expected behavior

skaffold init generated a skaffold.yaml with paths containing backslashes. Such paths should cause no problems as YAML does not interpret backslashes in an unquoted scalar, and Skaffold should accept backslash paths on Windows.

build:
  artifacts:
  - image: testmicro
    context: src\Microservices
    docker:
      dockerfile: TestMicro\Dockerfile

Actual behavior

@penguinflip: [...] Interestingly, the init script added the slashes the wrong way - src\Microservices\TestMicro (I guess because I'm on Windoze). Copying your code exactly worked, but it doesn't with the slashes reversed. This may be a bug with skaffold init...

Information

skaffold.yaml was generated by skaffold init.

  • Skaffold version: 1.15.0 (since generated skaffold.yaml has v2beta8)
  • Operating system: Windows
  • Contents of skaffold.yaml:
apiVersion: skaffold/v2beta8
kind: Config
metadata:
  name: microservices-investigation
build:
  artifacts:
  - image: testmicro
    context: src\Microservices
    docker:
      dockerfile: TestMicro\Dockerfile
deploy:
  kubectl:
    manifests:
    - k8s/TestMicro.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ux kind/bug Something isn't working platform/windows priority/p2 May take a couple of releases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants