<#19051 Pants rejects named cache names that conta...
# github-notifications
c
#19051 Pants rejects named cache names that contain digits Issue created by alonsodomin Describe the bug When launching a
Process
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:
Copy code
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`:
Copy code
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/pants