fix windows

This commit is contained in:
Shreyas Goenka 2025-03-05 11:39:09 +01:00
parent 09c05db3b1
commit acff901127
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
7 changed files with 17 additions and 6 deletions

View File

@ -3,7 +3,7 @@
hello, world
>>> [CLI] bundle exec -- --help
Error: starting "--help" failed: exec: "--help": executable file not found in $PATH
Error: starting "--help" failed: exec: "--help": executable file not found in PATH
Exit code: 1

View File

@ -1,3 +1,7 @@
[[Repls]]
Old = "\\$PATH"
New = "PATH"
[[Repls]]
Old = "%PATH%"
New = "$PATH"
New = "PATH"

View File

@ -1,5 +1,5 @@
>>> [CLI] bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2
Error: starting "doesnotexist arg1 arg2 --flag1 --flag2" failed: exec: "doesnotexist": executable file not found in $PATH
Error: starting "doesnotexist arg1 arg2 --flag1 --flag2" failed: exec: "doesnotexist": executable file not found in PATH
Exit code: 1

View File

@ -1 +1 @@
trace $CLI bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2
errcode trace $CLI bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2

View File

@ -1,3 +1,7 @@
[[Repls]]
Old = "\\$PATH"
New = "PATH"
[[Repls]]
Old = "%PATH%"
New = "$PATH"
New = "PATH"

View File

@ -0,0 +1,3 @@
[[Repls]]
Old = '\\'
New = '/'

View File

@ -55,7 +55,7 @@ Example usage:
//
// This is only useful for when the Databricks CLI is the child command,
// since if we do not explicitly pass the profile, the CLI will use the
// profile configured in the bundle YAML configuration (if any).
// auth configured in the bundle YAML configuration (if any).
if b.Config.Workspace.Profile != "" {
env = append(env, "DATABRICKS_CONFIG_PROFILE="+b.Config.Workspace.Profile)
}