Support `psql` as part of the server host
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, postgresql, typescript
调研方向
从 src/Utils/ActionInputs.ts 中移除连接字符串里的 psql 和引号的链接逻辑开始。使用类似 caf-named-db-psql.postgres.database.azure.com 的主机重现该问题,然后验证 action 在继续正确解析连接字符串的同时,会保留主机名中的 psql。
由索引模型根据 Issue 内容生成。
描述
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 😂
- 主要语言
- TypeScript
- 星标
- 25
- 派生
- 22
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/postgresql 的其他 Issue
-
need-to-triage
难度 2/5 1-3 小时 新手友好度 68/100
Azure/postgresql#58 ·
-
need-to-triage
难度 3/5 1-2 天 新手友好度 35/100
Azure/postgresql#55 ·
-
need-to-triage
难度 5/5 一周以上 新手友好度 20/100
Azure/postgresql#53 · 1 条评论 ·
-
need-to-triage
难度 3/5 1-2 天 新手友好度 25/100
Azure/postgresql#52 · 1 条评论 ·
-
need-to-triage
难度 5/5 一周以上 新手友好度 15/100
Azure/postgresql#41 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 90/100
TanStack/tanstack.com#1293 ·