mirror of https://github.com/databricks/cli.git
add a log
This commit is contained in:
parent
ca55524f94
commit
b9eeecd5a1
|
@ -14,6 +14,8 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/databricks/cli/libs/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -118,7 +120,7 @@ func PatchWheel(ctx context.Context, path, outputDir string) (string, error) {
|
||||||
outpath := filepath.Join(outputDir, newFilename)
|
outpath := filepath.Join(outputDir, newFilename)
|
||||||
|
|
||||||
if _, err := os.Stat(outpath); err == nil {
|
if _, err := os.Stat(outpath); err == nil {
|
||||||
// Target wheel already exists, return its path
|
log.Debugf(ctx, "Skipping patching of %s, already exists: %s", path, outpath)
|
||||||
return outpath, nil
|
return outpath, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue