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

Go/GoWithReplace skipping over go.mod files in child directories #1218

Open
FernandoRojo opened this issue Aug 2, 2024 · 0 comments
Open

Comments

@FernandoRojo
Copy link
Contributor

If you have a file structure like this:

/
- Path1/
- - go.mod
- - go.sum
- - ...
- Path2/
- - go.mod
- - go.sum
- - ...
- go.mod
- go.sum

The internal go.mod files are skipped due to these lines:

if (this.projectRoots.Any(path => projectRootDirectory.FullName.StartsWith(path)))

if (this.projectRoots.Any(path => projectRootDirectory.FullName.StartsWith(path)))
        {
            return;
        }

We would expect the root go.mod to have all the internal references, but in cases where the internal directories are not referenced by the root mod then components are being skipped.

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

No branches or pull requests

1 participant