Skip to content

Remove specs-go/parsing APIs #221

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

Merged

Conversation

bart0sh
Copy link
Contributor

@bart0sh bart0sh commented Aug 9, 2024

Got rid of using parseQualifier and isLetter APIs in version.go

@bart0sh bart0sh force-pushed the PR022-specs-go-remove-parsing-functions branch from 236c27a to 82711f0 Compare August 9, 2024 11:13
@bart0sh bart0sh force-pushed the PR022-specs-go-remove-parsing-functions branch from 82711f0 to 8de8603 Compare August 9, 2024 11:19
if strings.ContainsRune(class, '.') {
return true
}
if !strings.Contains(spec.Kind, "/") {
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a subtle difference here in that if there is no / the class is assumed to equal the Kind. and that would be checked for a ..

I don't think that's used in practice though.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK. Wait, I've just seen the other conditional below.

Copy link
Contributor

@elezar elezar left a comment

Choose a reason for hiding this comment

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

LGTM

@elezar elezar merged commit 1057f0e into cncf-tags:main Aug 9, 2024
7 checks passed
@bart0sh
Copy link
Contributor Author

bart0sh commented Aug 9, 2024

@elezar Thank you for the fast review & merging!

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.

2 participants