Skip to content

Conversation

@dzhukovsky
Copy link

Description

This PR resolves an issue occurring when using

- checkout: self
  workspaceRepo: true

The problem was caused by the use of Build.SourcesDirectory, which does not work correctly in a multi-repo setup with workspaceRepo: true.

Changes made

  • Replaced Build.SourcesDirectory with Build.Repository.LocalPath to correctly reference the repository path.
  • Removed __dirname usage, as with workspaceRepo: true, the current directory is already the repository root, whereas Build.SourcesDirectory in a multi-repo setup points one level above.

This fix ensures proper handling of paths when using multi-repo checkouts in Azure Pipelines.

@Saturate
Copy link
Collaborator

Hi @dzhukovsky thanks for the PR. I'll take a look at the code soon, but I'm a bit busy this week.

@Saturate
Copy link
Collaborator

Ooops, I need a way to verify these changes. But I've moved to use Dependency Track for my projects, if someone can verify this is working that would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants