File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ func ExecutablesFromImports(
8787
8888func shortenWsPath (wsPath string , path string ) string {
8989 if strings .HasPrefix (path , wsPath ) {
90- return "//" + path [len (wsPath )+ 1 :]
90+ return "//" + strings . TrimPrefix ( path [len (wsPath ):], "/" )
9191 }
9292
9393 return path
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ func main() {
2222 }
2323
2424 var archiveDir string
25- if args := os .Args ; len (args ) > 0 && slices .Contains (executable .ValidVerbs (), executable .Verb (args [0 ])) {
25+ if args := os .Args ; len (args ) > 1 && slices .Contains (executable .ValidVerbs (), executable .Verb (args [1 ])) {
2626 // only create a log archive file for exec commands
2727 archiveDir = filesystem .LogsDir ()
2828 }
You can’t perform that action at this time.
0 commit comments