Skip to content

Commit

Permalink
Sync devfile.yaml by default, workaround when commands change on devfile
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Aug 8, 2022
1 parent 263a815 commit 2d2d7e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/odo/cli/dev/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (o *DevOptions) Run(ctx context.Context) (err error) {
return err
}
// Ignore the devfile, as it will be handled independently
o.ignorePaths = append(ignores, o.GetDevfilePath())
o.ignorePaths = ignores

log.Section("Deploying to the cluster in developer mode")
componentStatus, err := o.clientset.DevClient.Start(devFileObj, namespace, o.ignorePaths, path, o.debugFlag, o.buildCommandFlag, o.runCommandFlag, o.randomPortsFlag, o.errOut)
Expand Down
5 changes: 0 additions & 5 deletions tests/integration/cmd_dev_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1744,11 +1744,6 @@ var _ = Describe("odo dev command tests", func() {
return nil
}

// devfile is not synchronized
if newPath == "devfile.yaml" {
return nil
}

localFiles = append(localFiles, newPath)
return nil
})
Expand Down

0 comments on commit 2d2d7e9

Please sign in to comment.