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

✨ kantra support .net provider on windows #262

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

djzager
Copy link
Member

@djzager djzager commented Jun 19, 2024

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

@djzager djzager force-pushed the dotnet-framework-provider branch 2 times, most recently from dbf25ff to 08f3d10 Compare June 20, 2024 19:06
@djzager djzager marked this pull request as ready for review June 20, 2024 19:06
@djzager djzager force-pushed the dotnet-framework-provider branch from 08f3d10 to 24dfd19 Compare June 20, 2024 19:24
cmd/analyze.go Outdated Show resolved Hide resolved
if err != nil {
return err
}
port, err := freeport.GetFreePort()
Copy link
Collaborator

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.

cmd/settings.go Show resolved Hide resolved
Copy link
Contributor

@pranavgaikwad pranavgaikwad left a 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{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof :)

Copy link
Member Author

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.

@eemcmullan
Copy link
Collaborator

Apart from minor concern of provider validation comment, LGTM! Thanks!

@djzager djzager force-pushed the dotnet-framework-provider branch from 2343ba5 to 4872c35 Compare June 20, 2024 21:51
@djzager djzager merged commit 1300c6e into konveyor:main Jun 20, 2024
3 checks passed
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.

Add .NET Provider
3 participants