Skaffold: Error adding watch for files

Created on 26 Mar 2018  路  4Comments  路  Source: GoogleContainerTools/skaffold

Expected behavior

Watch should be added for Dockerfile and other deps

Actual behavior

Error:
adding watch for C:Usersgarvinprojectskube-taskjobDockerfile: The parameter is incorrect

Information

I looked at the code and the error seems to be coming from here:
https://github.com/GoogleCloudPlatform/skaffold/blob/739a5048151dc610956fa7117075add73bff1795/pkg/skaffold/watch/watch.go#L202

Perhaps this is an issue with http://github.com/rjeczalik/notify and Windows?

Skaffold version: v0.2.0
Operating system: Windows 10 pro (build 16299)
Content of skaffold.yaml:

apiVersion: skaffold/v1alpha1
kind: Config
build:
  artifacts:
  - imageName: localhost:5000/kube-task 
    workspace: C:\Users\garvin\projects\kube-task\job
  local: {}
deploy:
  kubectl:
    manifests:
    - paths:
      - k8s/*
      parameters:
        KUBE-TASK: localhost:5000/kube-task

Steps to reproduce the behavior

  1. Run skaffold dev
  2. Error appears after pod deployment
arebuild arewatch kinbug platforwindows

All 4 comments

I also had the same issue trying to run skaffold on windows 7 after running skaffold dev, is there a fix for this?
The binary I was using was this one:
https://storage.googleapis.com/skaffold/v0.1.0/skaffold-windows-amd64.exe

Running into the same issue.
My Env:

  • Win 10 Pro
  • skaffold 0.3.0

I also ran into the same problem with Windows 10 (latest version) and skaffold 0.3.0.

However, after building master (7349a0f3bc97926c5a894bb1e0af7c63e254a373), this is no longer happens.

To use master, install Go, delete the old skaffold binary and run go get -u github.com/GoogleCloudPlatform/skaffold/cmd/skaffold. Assuming $GOPATH/bin is in your PATH, you can run skaffold from anywhere.

I believe this might be due to switching to fsnotify a few days ago.

Fixed with #620

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gbird3 picture gbird3  路  3Comments

nathkn picture nathkn  路  3Comments

stanislav-zaprudskiy picture stanislav-zaprudskiy  路  4Comments

strikeout picture strikeout  路  4Comments

r2d4 picture r2d4  路  3Comments