Skip to content
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

Add tests to verify the cli output for kpt pkg update #2217

Merged
merged 2 commits into from
Jun 14, 2021

Conversation

mortent
Copy link
Contributor

@mortent mortent commented Jun 11, 2021

This adds a few tests to verify the output from the kpt pkg update command. In particular, make sure information about deletion/addition of packages are communicated to the user.

@@ -239,9 +239,16 @@ func RootPkgFirstSorter(paths []string) func(i, j int) bool {
if jPath == "." {
return false
}
// First sort based on the number of segments.
// TODO: Verify whether this works on Windows. It looks like it
// probably wont.
iSegmentCount := len(strings.Split(iPath, "/"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mortent mortent merged commit f03d9f4 into kptdev:main Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants