revert changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user