Skip to content

Draft: Always trim abspath prefix when generating file location

Lucas Charles requested to merge 221149-fix into master

What does this MR do?

Followup to !60 (merged). I think I made this fix overly complicated before and we should never attempt to keep the source file relative to the project file. In our case we always want this relative to the root path of the project mount, so we attempt to trim the root and when that fails, return the untrimmed prefix in its entirety (per the default no-op behavior of TrimPrefix)

What are the relevant issue numbers?

gitlab-org/gitlab#221149 (closed)

Does this MR meet the acceptance criteria?

Edited by Lucas Charles

Merge request reports