New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14147 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 years ago

port lint should warn on illegal variant names

Reported by: ryandesign@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.7.0
Keywords: Cc:
Port:

Description

port lint should warn when it encounters variants whose names are not composed entirely of legal characters. I'm not sure if the list of legal characters for variant names has ever been defined anywhere before, but looking through all variant names of all ports right now, I see that they are all composed of letters A-Z and a-z, numbers 0-9, underscore and hyphen/dash, and the hyphen/dash is the only one of those that causes problems. (A variant with a hyphen/dash in the name cannot be selected.) So port lint should warn if a variant name does not match the regular expression ^[A-Za-z0-9_]+$

Related: the guide should say something about valid variant names; see #14141.

Change History

Changed 4 years ago by raimue@…

  • status changed from new to closed
  • resolution set to fixed

Implemented in r33679.

Even though you said "warn" I implemented it as an error, as such variants are not selectable.

Changed 4 years ago by ryandesign@…

Thank you! That's what I meant. :)

I changed the wording of the message slightly in r33680.

Changed 4 years ago by jmpp@…

  • component changed from ports to base

Changed 2 years ago by jmr@…

  • milestone changed from MacPorts Future to MacPorts 1.7.0
Note: See TracTickets for help on using tickets.