Skip to content

skaffold dev/run fails on files not added to git diff #471

@tariq-islam

Description

@tariq-islam

Issues without logs and details are more complicated to fix.
Please help us!

Expected behavior

  1. Create a skaffold pipeline file and name it anything other than 'skaffold.yaml'
  2. skaffold dev/run
  3. Skaffold successfully builds and deploys

Actual behavior

Skaffold errors with:
Error: running skaffold steps: build: build step: generating tag: reading diff: open /Users/tariqislam/opt/hello-go/skaffold.yaml: no such file or directory

Information

This occurs with any file that is not added by git add after creation or file name change

Skaffold version: version... 0.5.0
Operating system: ... OSX
Content of skaffold.yaml: ...
apiVersion: skaffold/v1alpha2
kind: Config
build:
  artifacts:
  - imageName: <redacted>
    workspace: .
    docker: {}
  local: {}
deploy:
  kubectl:
    manifests:
      - hello-go*

Steps to reproduce the behavior

  1. In examples/getting-started
  2. Change name of skaffold.yaml to anything else
  3. Run skaffold dev/run

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions