Skip to content

hadrian: Refactor file patterns for future Shake changes (fixes #17005)

Jess requested to merge (removed):refactorPatterns into master

Shake will be moving from its current implementation of ?== to one from System.FilePattern. Support for // is being dropped, leaving only * and ** as special forms. This commit converts the existing file patterns in Hadrian to the new format to prepare for the change in advance.

The conversion is as follows:

  • //a ==> **/a

  • a// ==> a/**

  • a//b ==> a/**/b

Edited by Jess

Merge request reports