Repository navigation
fix(go): ignore go.mod fixtures under testdata, _ and . directories - #215
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Merged
Conversation
goAdapter counted every nested go.mod as a nested module, including go.mod files under testdata/ and directories starting with _ or ., which go list ./... never enters. A root module with a module fixture in a testdata directory fell back on every change unless it set go.scope root-module. Signed-off-by: FredApps <[email protected]>
FredApps
commented
Nov 17, 2026
FredApps
left a comment
Contributor
Author
There was a problem hiding this comment.
Cross-review of 01355c1.
Checked:
- The fix matches #214. A
go.modundertestdata/,_x/or.x/is not counted as a nested module, but only when there is a rootgo.mod. That is consistent withisGoDiscoveryIgnoredPath, which the build walk already uses. Without a root module the behaviour is unchanged. Real nested modules (#80) still fall back. - The new test fails with
src/reverted (1 of 2 fail) and passes with the fix.tests/repo/go-ignored-nested-module.test.tsis listed inrelease-files.json. The commit is DCO-signed. The branch is level with main. CI is green.
Fixed: nothing.
Still open: none.
FredApps
added a commit
to FredApps/core
that referenced
this pull request
Nov 18, 2026
…ffCI#215 The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict. Signed-off-by: FredApps <[email protected]>
FredApps
marked this pull request as ready for review
November 18, 2026 00:56
adityankale190895
pushed a commit
that referenced
this pull request
Nov 18, 2026
…ything with ** (#249) * fix(test-discovery): keep +, $ and ^ literal in globs, and match everything with ** globToRegex escaped only backslashes and dots, so `+`, `$` and `^` reached RegExp as operators. A declared input naming a Remix route such as app/routes/users.$id.tsx matched nothing and its tests were not selected, app/routes/_auth+/** missed remix-flat-routes folders, and c++/** threw. A bare ** also stayed within one path segment. Groups, classes and extglobs behave as before, matching picomatch. Signed-off-by: FredApps <[email protected]> * chore: move the release-files.json entry so it merges cleanly with #215 The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict. Signed-off-by: FredApps <[email protected]> --------- Signed-off-by: FredApps <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #214
When the repository has a root
go.mod, ago.modunder a directory thatgo list ./...ignores no longer counts as a nested module. Those aretestdata/and directories whose names start with_or.. Changes inside those directories go through the existing testdata handling, as before.Without a root
go.mod, nothing changes: such files still confine the Go adapter to their directories.Validation:
tests/repo/go-ignored-nested-module.test.tsruns the realgo listoffline and skips without Go. Ago.modundertestdata/and under_examples/now gives a selective plan. A nestedtools/go.modstill falls back. The first case fails onmainand passes here.npm run typecheck,npm test(1169 pass),npm run audit:boundary.