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

Add golang source detector for new-app #12485

Merged
merged 1 commit into from
Jan 14, 2017
Merged

Add golang source detector for new-app #12485

merged 1 commit into from
Jan 14, 2017

Conversation

coreydaley
Copy link
Member

Adding golang source detector for oc new-app,
looks for main.go and Godeps

Fixes issue #12417

Adding golang source detector for oc new-app,
looks for main.go and Godeps

Fixes issue #12417
@coreydaley coreydaley requested a review from bparees January 13, 2017 20:05
@coreydaley
Copy link
Member Author

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 77b08ef

@bparees
Copy link
Contributor

bparees commented Jan 13, 2017

lgtm [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 77b08ef

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12856/) (Base Commit: 398ca1a)

@openshift-bot
Copy link
Contributor

openshift-bot commented Jan 14, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12877/) (Base Commit: 13074d4) (Image: devenv-rhel7_5679)

@openshift-bot openshift-bot merged commit e696f47 into openshift:master Jan 14, 2017
@coreydaley coreydaley deleted the github_12417_go_detector branch January 14, 2017 17:41
@@ -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")
Copy link

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)

Copy link
Member Author

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

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.

4 participants