-
Notifications
You must be signed in to change notification settings - Fork 227
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
Resolve symlink for root directory and update tests #2473
Conversation
6195e6b
to
6e7f5a5
Compare
6e7f5a5
to
04da32e
Compare
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.
Looks good to me. I have one request for the output of the command.
7be3f3e
to
c7d9df3
Compare
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.
Pl. address a small nit, then ship it.
internal/util/argutil/argutil.go
Outdated
f, err := os.Lstat(path) | ||
if err == nil && f.Mode().Type() == os.ModeSymlink { | ||
isSymlink = true | ||
} else if err != nil { |
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.
nit: we can move this up at the top (without else)
Resolve the symlinks only for the root package directory on which kpt command is being invoked.
Update the existing tests.