Skip to content

Conversation

@ldez
Copy link
Member

@ldez ldez commented Nov 21, 2025

Adds an experimental option (experimental: "automatic-module-directories") to automatically detect the modules inside mono-repos.

The launches of the run are not in parallel because this would create a real mess in the logs.
The GitHub Action jobs are not made to run in parallel outside the matrix system.

This is an experimental feature because I don't know the performance of NodeJS to walk the directory tree to detect go.mod files.

If the performances are not good enough, another possibility is to create an option (module-directories) to define the directories.
But actions don't support arrays as inputs, so it will be a comma-separated string.
In this case, because it will be challenging to have something portable on all operating systems,
the users will have to manually define the module directories or use something external (ex, find . -name go.mod -exec readlink -f {} \; | xargs -I{} dirname {} | paste -sd,)

Related to #1226
Related to #74

@ldez ldez added enhancement New feature or request area: experimental labels Nov 21, 2025
@ldez ldez merged commit e7fa5ac into golangci:main Nov 21, 2025
63 checks passed
@ldez ldez deleted the feat/automatic-module-directories branch November 21, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: experimental enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant