Draft: Always trim abspath prefix when generating file location
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?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Lucas Charles