Test-only Go dependencies force the Go version of the whole repo (see #1548)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 12/100
- Tipo di issue
- Refactoring
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- docker, go
- Ambito
- build-system
Direzione di ricerca
Start with the open question in the issue: whether vendor/ is needed because bin/supply and bin/finalize build offline, which you can check in scripts/install_go.sh and the packaging scripts. Then look at go.mod, src/integration, and scripts/integration.sh to see which modules come only from the integration tests. This needs a maintainer decision on the approach before any code change, so done means that decision is recorded.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
While looking at Dependabot PR #1548 I noticed that a test-only dependency can raise the Go version for the whole repo.
go.mod says go 1.25.4, and scripts/install_go.sh installs Go 1.25.10, which bin/supply and bin/finalize use for go build -mod=vendor. otel 1.47.0 needs Go 1.26, so #1548 changes go.mod to go 1.26.0. The build with Go 1.25.10 (GOTOOLCHAIN=local) then fails with go: go.mod requires go >= 1.26.0. On main it works.
The buildpack binaries (supply, finalize, javaexec) only use a few modules: libbuildpack, libbuildpack-dynatrace, the two semver libraries, backoff, the YAML libraries and golang.org/x. OpenTelemetry is pulled in by the integration tests: go mod why go.opentelemetry.io/otel gives src/integration -> switchblade -> docker/docker/client -> otelhttp -> otel. As far as I can see, the same tooling brings in many of the other test-only modules. vendor/ holds 51 modules in 1,526 committed files (24 MB), so one bump can change tens of thousands of lines (#1528: about 35,000, of which 90% are two generated files).
Some ideas, in the order I would try them:
- Move
src/integrationinto its own Go module (owngo.modandvendor/). Bumps of switchblade, the Docker client or otel would then no longer change the Go version or the vendored code of the buildpack itself. I have not tried this;scripts/integration.shand the CI jobs would need a check. - Dependabot rules: group or ignore the test-only modules, so a Go version jump is not proposed as a routine update.
- Raise the Go version of the buildpack on purpose now and then, in its own PR (new version and sha256 per stack in
install_go.sh), so the gap to the newest Go stays small.
Question: is vendor/ needed because bin/supply and bin/finalize build from source when staging (possibly without network access), or is there another reason? That would help to decide which of these ideas makes sense.
- Lingua principale
- Go
- Stelle
- 455
- Fork
- 2.5k
- Merge medio
- 22h 9m
- PR unite (30g)
- 69
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cloudfoundry/java-buildpack
-
New Relic agent is installed but never attached to the JVM (v5.0.4 and later)Forse già presa @stokpop l’ha presa 3 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
cloudfoundry/java-buildpack#1542 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
cloudfoundry/java-buildpack#1521 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
cloudfoundry/java-buildpack#1469 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Support configurable initial/minimum heap size relative to (/as a percentage of) calculated XmxAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
cloudfoundry/java-buildpack#1377 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
cloudfoundry/java-buildpack#1364 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di cloudfoundry/java-buildpack
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
github/github-mcp-server#3865 ·
I maintainer di solito rispondono entro 2 giorni
-
kind/features
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TencentBlueKing/bk-nodemgr#4017 ·
I maintainer di solito rispondono entro 1 giorno
-
ssa: wait errors drop the kstatus message, so health check failures don't say whyForse già presa @schdief l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
equinor/radix-operator#2066 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
microsoft/terraform-provider-msgraph#188 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno