Weird lint behavior
Mark E Anderson
mark at macports.org
Fri Sep 20 18:48:53 UTC 2024
Yeah, but that's the thing, I'm getting it on ports that don't have a platforms line at all, and it shows up in CI.
Thanks,
Mark
On Fri, Sep 20, 2024, at 2:19 PM, Keto wrote:
> When I submitted a port a few months ago, I was told that `platforms darwin` is implicit in MacPorts now [1], so newer ports shouldn't include the field unless the port doesn't build on certain macOS versions (e.g, a port that doesn't build on anything lower than macOS Catalina, `darwin >= 19`).
>
> Older ports might still have this field, hence the warning. I think it's trivial put that's where the warning comes from.
>
> [1]: https://github.com/macports/macports-ports/pull/20062#issuecomment-1700057721
>
> On Fri, Sep 20, 2024 at 2:07 PM Mark E Anderson <mark at macports.org> wrote:
>> __
>> I've been getting this error, in files that don't have a platform line. I assume this error is in a port group? My question is, is it the lint that's wrong or the portgroups?
>>
>> Warning: Unnecessary platforms line as darwin is the default
>>
>> Thanks,
>> Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20240920/ed7f435e/attachment.htm>
More information about the macports-dev
mailing list