-
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
Support csproj files for identifying .NET Core projects #11896
Conversation
|
||
// DetectLiteralDotNet detects .NET source and matches it to a .net supported annotation | ||
func DetectLiteralDotNet(dir string) (*Info, bool) { | ||
return detect(".net", dir, "project.json") |
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.
this matches to imagestreams with a "supports" annotation with value of ".net"
return true | ||
func detectGlob(platform string, dir string, globs ...string) *Info { | ||
for _, g := range globs { | ||
if matches, _ := filepath.Glob(filepath.Join(dir, g)); len(matches) > 0 { |
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 not just do globbing in the existing detect function, regardless of whether the passed pattern contains a * ?
b8731b7
to
90d47d2
Compare
All changes made, thanks. |
return detect("perl", dir, "index.pl", "cpanfile") | ||
} | ||
|
||
// DetectScala detects Scala source | ||
func DetectScala(dir string) (*Info, bool) { | ||
func DetectScala(dir string) *Info { | ||
return detect("scala", dir, "build.sbt") | ||
} | ||
|
||
// DetectDotNet detects .NET source and matches it to a dotnet supported annotatin or dotnet imagestream name |
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.
annotation (i know, not your fault but it's bugging me now :) )
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.
one nit and lgtm.
90d47d2
to
b865d3c
Compare
Done. |
lgtm for post 3.4 merge. |
[merge] |
[Test]ing while waiting on the merge queue |
|
b865d3c
to
4c3626f
Compare
4c3626f
to
7cc7460
Compare
Evaluated for origin test up to 7cc7460 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11593/) (Base Commit: 3b2bbe5) |
[merge] |
Evaluated for origin merge up to 7cc7460 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11603/) (Base Commit: 57f69c1) (Image: devenv-rhel7_5393) |
Fixes #11842
@bparees ptal - I removed DetectLiteralDotNet() because I couldn't see how it could possibly be triggered?