Weird lint behavior

Keto therealketo at gmail.com
Fri Sep 20 18:19:18 UTC 2024


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/b844d730/attachment.htm>


More information about the macports-dev mailing list