Great comment by Andrew, I would jot it down to the solution.
While adding configuration change the Run-Kind to package instead of file or directory. Use this run-kind option wisely.
I have a skaffold Go project which I cloned. Now I want to run this Go project. I had set up the configuration in project setting and GOPATH is also correctly set. I am getting error while setting this configuration.
These are my GOPATH settings
Sometimes it runs and some time it shows the above error.