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

fix: add a routable string helper to verevet.Version #401

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tinygrasshopper
Copy link
Contributor

@tinygrasshopper tinygrasshopper requested a review from a team as a code owner November 26, 2024 08:21
- helps with templating version string
@tinygrasshopper tinygrasshopper force-pushed the fix/add-routable-string-to-version branch from b86b56b to 51876ff Compare November 26, 2024 08:37
return v.String()
}
return v.DateString()
}
Copy link
Member

Choose a reason for hiding this comment

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

Should this replace String? What use cases are there for using the original String method over this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The blast radius for that change would be quite a lot, the .String method is used in other contexts. We can replace the .String -> .RoutableString iteratively where needed

Copy link
Member

Choose a reason for hiding this comment

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

That's what semantic versioning is for

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's what semantic versioning is for

Dont get what you mean by that bit

Currently, there are 58 usages for version.String() in the vervet codebase and the RoutableString implementation is not valid for all of them. We might introduce a lot of unintended side-effects if we replace the String method

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