-
-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: unknown path problem in docker #1396
Conversation
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
cmd/record.go
Outdated
return nil | ||
} | ||
currentDir := strings.TrimSpace(string(out)) | ||
fmt.Println("THis is the path", path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this a debug log
cmd/test.go
Outdated
return nil | ||
} | ||
currentDir := strings.TrimSpace(string(out)) | ||
fmt.Println("THis is the path", path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this also a debug log.
The user-provided path should be logged in each error. |
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Describe the changes you've made
Added a check for the path in case of docker, if the path is not a subdirectory of the current path then we do not record
Fixes: #1411
Type of change
Checklist: