-
Notifications
You must be signed in to change notification settings - Fork 28
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
✨ kantra support .net provider on windows #262
Conversation
dbf25ff
to
08f3d10
Compare
08f3d10
to
24dfd19
Compare
if err != nil { | ||
return err | ||
} | ||
port, err := freeport.GetFreePort() |
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 is probably finding a free port on the host network, instead of the container network. We had this issue with other providers, and decided to re-try the container run if it fails: https://github.com/konveyor/kantra/blob/main/cmd/analyze.go#L1111
It's obviously not the best way around this, but haven't yet found another solution.
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.
LGTM, great work!
@@ -48,13 +48,34 @@ var ( | |||
AnalysisOutputMountPath = path.Join(OutputPath, "output.yaml") | |||
DepsOutputMountPath = path.Join(OutputPath, "dependencies.yaml") | |||
ProviderSettingsMountPath = path.Join(ConfigMountPath, "settings.json") | |||
DotnetFrameworks = map[string]bool{ |
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.
oof :)
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.
lol I know right. I was trying to think of a better way to do this...I'm all ears.
Apart from minor concern of provider validation comment, LGTM! Thanks! |
24dfd19
to
75ca2d4
Compare
Signed-off-by: David Zager <[email protected]>
2343ba5
to
4872c35
Compare
This introduces a provider for analyzing .NET application in the cross-platform and windows-only scenarios described in konveyor/enhancements#179.
Hold for #259 , will rebase after that merges.
Fixes #254