File tree Expand file tree Collapse file tree
acceptance/dlt/install-dlt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ dlt init is not yet implemented. This will initialize a new DLT project in the f
66=== dlt file exists, should not overwrite
77>>> errcode [CLI] install-dlt -d tmpdir
88dlt successfully installed to the directory "tmpdir"
9+ [DLT] -> [CLI]
910
1011=== Executable not called as databricks
1112>>> errcode ./notdatabricks install-dlt
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ title "dlt file exists, should not overwrite"
55mkdir -p tmpdir
66touch tmpdir/dlt
77trace errcode $CLI install-dlt -d tmpdir
8+ if [[ "$OSTYPE" == "msys" ]]; then
9+ echo "$DLT -> $(realpath "$DLT" | sed 's/\.exe$//')"
10+ else
11+ echo "$DLT -> $(realpath "$DLT")"
12+ fi
813rm -rf tmpdir
914
1015title "Executable not called as databricks"
Original file line number Diff line number Diff line change 66 "fmt"
77 "os"
88 "path/filepath"
9- "runtime"
109
1110 "github.com/databricks/cli/libs/cmdio"
1211 "github.com/spf13/cobra"
@@ -27,9 +26,6 @@ func InstallDLTSymlink(directory string) error {
2726 dir = filepath .Dir (path )
2827 }
2928 dltPath := filepath .Join (dir , "dlt" )
30- if runtime .GOOS == "windows" {
31- dltPath += ".exe"
32- }
3329
3430 if fi , err := os .Lstat (dltPath ); err == nil {
3531 if fi .Mode ()& os .ModeSymlink != 0 {
You can’t perform that action at this time.
0 commit comments