revert changes

This commit is contained in:
anqiansong
2021-09-11 20:57:58 +08:00
parent f0ed2370a3
commit ded22e296e
7 changed files with 83 additions and 106 deletions

View File

@@ -5,7 +5,6 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"strings"
"github.com/tal-tech/go-zero/tools/goctl/vars"
@@ -116,12 +115,6 @@ func FindProjectPath(loc string) (string, bool) {
// ReadLink returns the destination of the named symbolic link recursively.
func ReadLink(name string) (string, error) {
goos := runtime.GOOS
switch goos {
case vars.OsWindows:
return name, nil
}
name, err := filepath.Abs(name)
if err != nil {
return "", err