Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support `psql` as part of the server host

Aperta
#48 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
github-actions, postgresql, typescript
Ambito
database, devops

Direzione di ricerca

Inizia in src/Utils/ActionInputs.ts, nella logica collegata che rimuove psql e le virgolette dalla stringa di connessione. Riproduci il problema con un host come caf-named-db-psql.postgres.database.azure.com, quindi verifica che l’action conservi psql quando fa parte dell’host, continuando al contempo ad analizzare correttamente la stringa di connessione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

According to the CAF (Cloud Adoption Framework) the official abbreviation for a PostgreSQL database is psql.

But the current implementation blindly replaces 'psql' with '', which breaks the ability to use this action with such a named DB.

Input:

      - uses: azure/postgresql@v1
        with:
          connection-string: host=caf-named-db-psql.postgres.database.azure.com ...

Output:

psql: error: could not translate host name "caf-named-db-.postgres.database.azure.com" to address: Name or service not known
Error: Error occurred while running action:
Error: The process '/usr/bin/psql' failed with exit code 2

Personal workaround:

The code currently not only replaces 'psql' with '', it also (as a second step) replaces '"' with ''. So a functional workaround that I use is adding a rouge " like this:

      - uses: azure/postgresql@v1
        with:
          connection-string: host=caf-named-db-p"sql.postgres.database.azure.com ...

But this is far from ideal 😂

Lingua principale
TypeScript
Stelle
25
Fork
22
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/postgresql

Tutte le issue di Azure/postgresql

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.