Support repositories with several go.mod modules

Aberta
#80 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
go, typescript
Domínio
ci-cd, testing

Direção de pesquisa

Start with tracking issue #76 and the related go.work issue, then locate the Go module analysis and fixture tests. Check how go list results and module-to-file assignment are handled, and coordinate on the tracking issue as requested. Done when a fixture with a root module and tools/go.mod selects only tools tests for changes in tools/, without a go.scope setting.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

adapter enhancement help wanted

Part of #76.

A repository with a root go.mod plus nested modules (for example tools/go.mod or examples/go.mod) falls back unless it sets "go": { "scope": "root-module" }. Even then, changes inside the nested modules always fall back:

Changes in a Go module outside the declared root-module scope require full validation

Proposal

  • Analyse every module in the repository, not just the root: run go list from each go.mod directory and merge the results.
  • A nested module that requires another in-repo module by module path, with no local replace, uses the published version, so there's no edge. Only a local replace creates an edge (see the replace issue).
  • Keep go.scope: root-module as an opt-out for repositories that want the current behaviour.

Must fall back (blocker)

  • Any module whose go list fails, or whose files can't be assigned to exactly one module.

Done when

  • A fixture with a root module and tools/go.mod shows that a change in tools/ runs only tools tests, without any go.scope setting.

Shares most of its code with the go.work issue. Whoever picks up either one, coordinate on the tracking issue.

Linguagem predominante
TypeScript
Estrelas
0
Forks
4
Merge médio
18h 41min
PRs com merge (30d)
48

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de DiffCI/core

Todas as issues de DiffCI/core

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.