Open pasweistorz opened 7 hours ago
That sounds awfully complicated and requires a lot of knowledge about the internals of the ever-changing fetcher modules.
The linter currently already suggests to add either branch
or nobranch
to the git fetcher, so I would back down to the position and say that this is beyond the scope of a generic linter.
I will keep the issue open if someone is interested in implementing that in a manageable and generic way, but likely I will not add a code myself for that.
Wouldn't it be enough to just add usehead
to _required_unless_options['branch']
?
will check on that
Hi,
when using the Git fetcher module the
usehead
parameter implies thenobranch
parameter. Thus, there should be no need to explicitly specify thenobranch
parameter when using theusehead
parameter. But if thebranch
parameter is missing, OELint wants the user to specify thenobranch
parameter although theusehead
is specified.Thanks for investigating.