googleapis / googleapis/google-cloud-java

[sdk-platform-java] Create an empty `versions.txt` if it doesn't exist in `repository-path`

Aperta
#12,405 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
priority: p2 type: feature request
Lingua principale
Java
Stelle
2.1k
Fork
1.2k
Merge medio
1g 23h
PR unite (30g)
154

Descrizione

In the hermetic library generation process, we require a `versions.txt` file exists in `repository-path`; otherwise raise `FileNotFoundError` in https://github.com/googleapis/sdk-platform-java/blob/7d6d66a161db5edc538aec065405954acf4434c5/hermetic_build/library_generation/utils/utilities.py#L164

We didn't check the content of this file and the post processor can add versions for new client, therefore we should create an empty file if not exist, rather than raise an exception.

The generated library will have a `0.0.1-SNAPSHOT` version.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.