mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00:00
Basic VSCode configuration for building and debugging (#2483)
* Basic VSCode configuration for building and debugging * Fix building and debugging in Windows * Move to contrib folder and add instructions
This commit is contained in:
@ -500,7 +500,11 @@ func DateLang(lang string) string {
|
||||
|
||||
// execPath returns the executable path.
|
||||
func execPath() (string, error) {
|
||||
file, err := exec.LookPath(os.Args[0])
|
||||
execFile := os.Args[0]
|
||||
if IsWindows && filepath.IsAbs(execFile) {
|
||||
return filepath.Clean(execFile), nil
|
||||
}
|
||||
file, err := exec.LookPath(execFile)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Reference in New Issue
Block a user