intersystems / ipm

InterSystems ObjectScript Package Manager
MIT License
28 stars 19 forks source link

Default resource processor ignores percent (%) in path #490

Closed isc-shuliu closed 1 month ago

isc-shuliu commented 1 month ago

The default behaviour of resource processor is to ignore percent (%) in resource paths.

It seems to be a problem for some legacy packages such as zapm.

@isc-tleavitt I wonder what is the rationale behind this convention to ignore "%" by default and if there is a way around it for package publishers (other than renaming their directory).

isc-tleavitt commented 1 month ago

@isc-bzhang @isc-kiyer do you have background on this?

IIRC we're permissive on load and will support it with/without the % depending on what happens to exist on disk.

isc-shuliu commented 1 month ago

It seems this code is trying to find whatever exists on filesystem, but the later call to $TRANSLATE defeats this purpose.