cool-easter-32542
05/19/2023, 7:20 AMProcess with a named cache (i.e. append_only_caches), if any of the cache names contains digits (i.e. namedcache2), Pants will fail with following exception:
native_engine.IntrinsicError: Error lifting Process: Cache names may only contain lowercase alphanumeric characters or underscores: got "namedcache2"
The error message is puzzling because it gives the understanding that the given name (one with lowercase alphabetic characters and one digit) meets the criteria.
The culprit is the following check in `named_caches.rs`:
name.chars().all(|c| (c.is_ascii_alphanumeric() && c.is_ascii_lowercase()) || c == '_')
This is because digits will pass the c.is_ascii_alphanumeric() check but will fail at c.is_ascii_lowercase().
Pants version
This was found in HEAD
OS
both
Additional info
pantsbuild/pantscool-easter-32542
05/22/2023, 12:22 PM