testcontainers / testcontainers/testcontainers-java
[Bug]: Build fails with "Unknown cli flag: --scripts-prepend-node-path" due to outdated Spotless plugin
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 8.7k
- Fork
- 1.9k
- Merge medio
- 2g 17h
- PR unite (30g)
- 9
Descrizione
Module
Core
Testcontainers version
latest master
Using the latest Testcontainers version?
Yes
Host OS
macOS
Host Arch
arm
Docker version
Client:
Version: 29.7.2
API version: 1.55
Go version: go1.26.5
Git commit: a7dcaa6
Built: Wed Aug 5 18:27:50 2026
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Desktop 4.87.0 (236836)
Engine:
Version: 29.7.2
API version: 1.55 (minimum version 1.40)
Go version: go1.26.5
Git commit: 6a43e3d
Built: Wed Aug 5 18:28:35 2026
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: v2.2.5
GitCommit: e53c7c1516c3b2bff98eb76f1f4117477e6f4e66
runc:
Version: 1.3.6
GitCommit: v1.3.6-0-g491b69ba
docker-init:
Version: 0.19.0
GitCommit: de40ad0
What happened?
The Gradle build fails with an error related to the Spotless plugin when it tries to run prettier. The error is:
npm error Unknown cli flag: --scripts-prepend-node-path
This happens because the version of Spotless used by the project does not support this npm flag. The issue was fixed upstream in Spotless version 8.10.1 (see diffplug/spotless#3024).
Expected behavior
The build should complete successfully without npm-related errors.
Current behavior
The build fails during the :test-support:spotlessJava task.
Steps to reproduce
- Clone the repository.
- Run
./gradlew build.
Proposed solution
Update the Spotless plugin to version 8.10.1 or later.
Relevant log output
> Task :test-support:spotlessJava FAILED
...
npm error Unknown cli flag: --scripts-prepend-node-path
...
Additional Information
No response
Guida per i contributori
Apri 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.
Direzione di ricerca
Individua la configurazione Gradle che dichiara il plugin Spotless e verifica la versione utilizzata per la build. Esegui ./gradlew build, concentrandoti su :test-support:spotlessJava; l’attività è completata quando la build termina senza l’errore npm --scripts-prepend-node-path.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Attiva
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 78/100