-
Notifications
You must be signed in to change notification settings - Fork 13
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 svn support for tags. #67
Conversation
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
@@ -6,6 +6,8 @@ require ( | |||
github.com/clbanning/mxj v1.8.4 | |||
github.com/jortel/go-utils v0.1.2 | |||
github.com/konveyor/tackle2-hub v0.5.0-rc.1.0.20240726125502-8bb3c0911660 | |||
github.com/onsi/gomega v1.27.6 | |||
github.com/swaggo/swag v1.16.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.
hint: go mod tidy
picked these up for some reason.
@@ -16,8 +16,10 @@ func init() { | |||
HomeDir, _ = os.UserHomeDir() | |||
} | |||
|
|||
type Remote = api.Repository |
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.
hint: added for readability.
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
@@ -51,7 +53,7 @@ func New(destDir string, remote *api.Repository, identities []api.Ref) (r SCM, e | |||
type SCM interface { | |||
Validate() (err error) | |||
Fetch() (err error) | |||
Branch(name string) (err error) | |||
Branch(ref string) (err error) |
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.
hint: This need to be more flexible. For git, it would be a branch or tag name. For svn, it needs to be a URL.
Signed-off-by: Jeff Ortel <[email protected]>
Signed-off-by: Jeff Ortel <[email protected]>
Add svn support tags. Need to support 2 use cases:
tags/v1.2
./trunk
is no longer assumed.Some minor re-organization. Better practice to have exported (public) methods at the top.
ref: https://issues.redhat.com/browse/MTA-4236