From 96a35ecf1a2b3790e4517a05553a29d24def5422 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Tue, 7 Sep 2021 15:38:40 +0800 Subject: [PATCH] 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 --- tools/goctl/util/path.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/goctl/util/path.go b/tools/goctl/util/path.go index c997396a..d4ae2c24 100644 --- a/tools/goctl/util/path.go +++ b/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 }