[MacPorts] #61980: port lint --nitpick gives false warning when version is a single integer (was: port lint --nitpick gives false warning when version is a single integer and python PortGroup is used)

MacPorts noreply at macports.org
Wed Jan 6 11:42:09 UTC 2021


#61980: port lint --nitpick gives false warning when version is a single integer
---------------------+--------------------
  Reporter:  Tatsh   |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  base    |    Version:
Resolution:          |   Keywords:
      Port:          |
---------------------+--------------------
Changes (by ryandesign):

 * cc: ryandesign (removed)


Comment:

 It's not exactly related to the python portgroup or any portgroup. It's
 just how lint works. You set version to "9", and line 18 is your
 `python.versions` line which contains "39", which does contain "9", as it
 says. I've seen a similar problem in other ports with single integer
 version numbers where the lint warning can be triggered by checksums.

 We could improve lint. For example, maybe it should only detect version
 numbers that are isolated by themselves and are not part of other numbers.

 The "seems to hardcode the version number" lint check is not performed for
 some lines (specifically, currently, those that match
 `(?:PortSystem|PortGroup|version|license|[A-Za-z0-9_]+\.setup)`). We could
 add `python.versions` and potentially other options that wouldn't contain
 a port version to that list.

-- 
Ticket URL: <https://trac.macports.org/ticket/61980#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list