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

Fix issue with workspaceRepo: true in Azure Pipelines #171

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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.

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