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 22>>> errcode [CLI] install-dlt
33dlt successfully installed to the directory "[BUILD_DIR]"
44dlt init is not yet implemented. This will initialize a new DLT project in the future.
5+ / U s e r s / a l y s s a . g o r b a n e v a / r e p o s / c l i / a c c e p t a n c e / b u i l d / d a r w i n _ a r m 6 4 / d a t a b r i c k s
56
67=== dlt file exists, should not overwrite
78>>> errcode [CLI] install-dlt -d tmpdir
89dlt successfully installed to the directory "tmpdir"
10+ [DLT] -> [CLI]
911
1012=== Executable not called as databricks
1113>>> errcode ./notdatabricks install-dlt
Original file line number Diff line number Diff line change 11trace errcode $CLI install-dlt
22"$DLT" init
33
4+ # Add debug line to show CLI value
5+ for ((i=0; i<${#CLI}; i++)); do
6+ echo -n "${CLI:$i:1} "
7+ done
8+ echo
9+
410title "dlt file exists, should not overwrite"
511mkdir -p tmpdir
612touch tmpdir/dlt
713trace errcode $CLI install-dlt -d tmpdir
14+ if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then
15+ echo "$DLT -> ${$(realpath "$DLT")%.exe}"
16+ else
17+ echo "$DLT -> $(realpath "$DLT")"
18+ fi
819rm -rf tmpdir
920
1021title "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