-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
🌱 Move the internal machinery utils to appropiate exported packages #2074
🌱 Move the internal machinery utils to appropiate exported packages #2074
Conversation
@@ -24,6 +24,96 @@ import ( | |||
"strings" | |||
) | |||
|
|||
const ( | |||
goVerPattern = `^go(?P<major>[0-9]+)\.(?P<minor>[0-9]+)(?:\.(?P<patch>[0-9]+)|(?P<pre>(?:alpha|beta|rc)[0-9]+))?$` |
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.
Regular expression decomposition with comprehensive test suite: https://regex101.com/r/TxisR1/1
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.
We are making public + adding tests.
So, it will not affect other places and just bring the option for them to use it 👍
- Go version checks and go-modules-based repo discovery moved to pkg/plugins/golang - Command execution and user prompt moved to pkg/plugin/util Signed-off-by: Adrian Orive <[email protected]>
6bb8c0f
to
2687774
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.
It does not change the behaviour.
Only add more test and allow it to be used as agreed in the bug triage meetings.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Adirio, camilamacedo86 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Partial: #2036