Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong paths for files in scan results with multi-checkouts. #23

Open
wooch82 opened this issue Jul 27, 2023 · 1 comment
Open

Wrong paths for files in scan results with multi-checkouts. #23

wooch82 opened this issue Jul 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@wooch82
Copy link

wooch82 commented Jul 27, 2023

Regarding documentation each repo is checked out to a custom path $(Pipeline.Workspace)/s/RepoName if use multi-checkouts.
In scans result section filenames have wrong links with RepoName
image

so it causes the error I try to see the file in a repo:
image

@50Wliu 50Wliu added the bug Something isn't working label Dec 29, 2023
@50Wliu
Copy link
Member

50Wliu commented Dec 29, 2023

This is tricky. The viewer constructs those URLs from the "version control provenance" object it receives, which (if it doesn't exist) this extension defaults to the repository that the build is linked to, not necessarily the repo that the results are from. So that seems to point to two things that need doing:

  1. This extension needs to figure out if multi-checkout is happening (somewhat difficult).
  2. The viewer needs to have an option to strip portions of the relative URI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants