Browse Source

fix #1006 (#1008)

* use sdktrace instead of trace for opentelemetry to avoid conflicts

* disable opentelemetry for right now

* use os.ModeSymlink instead of fs.ModeSymlink for backward compatibility
Kevin Wan 3 years ago
parent
commit
96a35ecf1a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tools/goctl/util/path.go

+ 1 - 2
tools/goctl/util/path.go

@@ -2,7 +2,6 @@ package util
 
 import (
 	"fmt"
-	"io/fs"
 	"os"
 	"path"
 	"path/filepath"
@@ -167,5 +166,5 @@ func isLink(name string) (bool, error) {
 		return false, err
 	}
 
-	return fi.Mode()&fs.ModeSymlink != 0, nil
+	return fi.Mode()&os.ModeSymlink != 0, nil
 }