Skip to content

Commit

Permalink
Do not pass os.Stdin to launched command
Browse files Browse the repository at this point in the history
This is related to getgauge/gauge#2419
- removes problematic line
- references issue in the code
- updates the dependencies in order to get go build and go test working

Co-authored-by: Lukas Bockstaller <[email protected]>
Signed-off-by: Lukas Bockstaller <[email protected]>
Signed-off-by: Chad Wilson <[email protected]>
  • Loading branch information
bockstaller authored and chadlwilson committed Oct 26, 2023
1 parent dedab3e commit 80f8f44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ func CopyFile(src, dest string) error {
return nil
}

//Appends contents of source file to destination file.
// Appends contents of source file to destination file.
// If destination file is not present, Copy file action is performed
func AppendToFile(srcFile, destFile string) error {
if FileExists(destFile) {
Expand Down Expand Up @@ -542,7 +542,6 @@ func prepareCommand(isSystemCommand bool, command []string, workingDir string, o
cmd.Dir = workingDir
cmd.Stdout = outputStreamWriter
cmd.Stderr = errorStreamWriter
cmd.Stdin = os.Stdin
return cmd
}

Expand Down

0 comments on commit 80f8f44

Please sign in to comment.