[Compass-ci] [PATCH compass-ci 1/2] src/lib/job.cr: optimize the get_pkg_common_dir function