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

Move the Unmanaged package manager to its own plugin project #6797

Merged
merged 2 commits into from
Apr 3, 2023

Conversation

sschuberth
Copy link
Member

Please have a look at the individual commit messages for the details.

This is a preparation for moving the `Unmanaged` package manager to its
own plugin project.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
@sschuberth sschuberth requested a review from a team as a code owner April 3, 2023 15:07
@codecov
Copy link

codecov bot commented Apr 3, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (606bb3d) 64.62% compared to head (f61a057) 64.62%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #6797   +/-   ##
=========================================
  Coverage     64.62%   64.62%           
  Complexity     1955     1955           
=========================================
  Files           322      322           
  Lines         16166    16166           
  Branches       2296     2296           
=========================================
  Hits          10448    10448           
  Misses         4726     4726           
  Partials        992      992           
Flag Coverage Δ
funTest-docker 63.94% <ø> (+0.50%) ⬆️
funTest-non-docker 49.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -109,7 +108,8 @@ class Analyzer(private val config: AnalyzerConfiguration, private val labels: Ma
}

if (!hasOnlyManagedDirs) {
distinctPackageManagers.find { it is Unmanaged.Factory }
val unmanagedPackageManagerFactory = PackageManager.ALL["Unmanaged"]
Copy link
Member

@fviernau fviernau Apr 3, 2023

Choose a reason for hiding this comment

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

Oh, I recall that the way we associate scan results with definition files / projects relies on the assumption that the Unmanaged package manager is present. If that doesn't hold, then detected licenses may get discarded silently.

This can be considered out of scope here, but should we do something about it?
(A first idea would be to disallow disabling it)

Copy link
Member Author

@sschuberth sschuberth Apr 3, 2023

Choose a reason for hiding this comment

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

Oh, I recall that the way we associate scan results with definition files / projects relies on the assumption that the Unmanaged package manager is present.

Good point. That somewhat relates to #5365 (comment).

A first idea would be to disallow disabling it

I think that's a good idea. We should probably ensure that

  • it's always present on the classpath,
  • it must not be explicitly disabled,
  • it must not be implicitly disabled by only enabling other package managers.

I'll probably make a follow-up PR.

@sschuberth sschuberth merged commit 9cbae5d into main Apr 3, 2023
@sschuberth sschuberth deleted the unmanaged-plugin-project branch April 3, 2023 18:12
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.

2 participants