Extract shared discover plugin logic into the step#4391
Conversation
00fdab0 to
8a53658
Compare
ff65754 to
c4afbf3
Compare
c4afbf3 to
c026f69
Compare
30d793b to
4f5a2d6
Compare
6b5508b to
562eaa0
Compare
Ty, can we also add tests? |
Would prefer to keep it similar to |
|
@therazix do you have a tracker for unifying the rest of these options? I don't see why |
In that case I would keep it for the next release with an issue |
I added a simple test that should cover the |
Not yet. I will create an issue that will track the remaining things to improve or refactor. This is the first step. The other things will be addressed in additional PRs. |
skycastlelily
left a comment
There was a problem hiding this comment.
Other than the nitpick, LGTM
956203c to
46a3edf
Compare
|
The test issue is a known flake with virtual tests, I will be filing an issue for them |
This PR extracts some shared behavior (repository fetching, installation of libraries, and application of policies) from individual discover plugins to their parent Discover plugin. The discover step now has control over these individual actions and can, for example, choose when exactly to perform repository fetching and other actions. It also makes some behavior consistent between the two discover plugins. The
discover/shellplugin now gains theurl-content-typekey, which works the same way as in thediscover/fmfplugin. Remote repository fetching is now unified for both plugins.Resolves #4348
Pull Request Checklist