-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 golang source detector for new-app #12485
Add golang source detector for new-app #12485
Conversation
Adding golang source detector for oc new-app, looks for main.go and Godeps Fixes issue #12417
[test] |
Evaluated for origin test up to 77b08ef |
lgtm [merge] |
Evaluated for origin merge up to 77b08ef |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12856/) (Base Commit: 398ca1a) |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12877/) (Base Commit: 13074d4) (Image: devenv-rhel7_5679) |
@@ -74,6 +75,11 @@ func DetectLiteralDotNet(dir string) *Info { | |||
return detect(".net", dir, "project.json", "*.csproj") | |||
} | |||
|
|||
// DetectGolang detects Go source | |||
func DetectGolang(dir string) *Info { | |||
return detect("golang", dir, "main.go", "Godeps") |
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.
Can we use *.go here, similar to *.csproj for .NET? At the moment s2i-go requires a main.go file, but I would like to fix that limitation eventually, to be able to run arbitrary programs (given a go install
-style path)
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.
Sure, please submit a PR adding *.go
Adding golang source detector for oc new-app,
looks for main.go and Godeps
Fixes issue #12417