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

Default to containerless mode #376

Merged
merged 1 commit into from
Nov 17, 2024
Merged

Conversation

eemcmullan
Copy link
Collaborator

@eemcmullan eemcmullan commented Nov 14, 2024

Copy link
Member

@aufi aufi left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Left few comments, CI probably needs some care, otherwise looks good.

General note on the default containerless, since there is also default analyze mode "full" (to analyze source+dependencies), analysis results might be different than before since there is persisted Maven .m2 cache with packages. So, even without adding settings.xml file to the analyze command, some packages might be already present in the local maven repository cache and some rules can match on those.

@@ -200,12 +201,9 @@ func NewAnalyzeCmd(log logr.Logger) *cobra.Command {
defer stop()

// ***** RUN CONTAINERLESS MODE *****
if Settings.RunLocal {
if analyzeCmd.listProviders {
Copy link
Member

Choose a reason for hiding this comment

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

--list-providers should return instead of starting analysis with container-less/run_local.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Didn't realize I removed that. Thanks for catching

cmd/analyze.go Outdated Show resolved Hide resolved
Copy link
Member

@aufi aufi left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Emily McMullan <[email protected]>
@eemcmullan eemcmullan added the cherry-pick/release-0.6 This PR should be cherry-picked to release-0.6 branch label Nov 17, 2024
@eemcmullan eemcmullan merged commit c261cf3 into konveyor:main Nov 17, 2024
3 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 17, 2024
default to containerless mode

Signed-off-by: Emily McMullan <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
eemcmullan added a commit that referenced this pull request Nov 18, 2024
default to containerless mode

Signed-off-by: Emily McMullan <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
Co-authored-by: Emily McMullan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/release-0.6 This PR should be cherry-picked to release-0.6 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants