commit: a88b192af72bd8f3c5c9076b47fa51b2afe2f662
Author: Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Sun Nov 9 12:41:58 2025 +0000
Commit: Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Sun Nov 9 12:41:58 2025 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=a88b192a
chore: add protection to release blocking any vcs dep
Signed-off-by: Brian Harring <ferringb <AT> gmail.com>
.github/workflows/release.yml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 457312ab..545cc4f2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -20,6 +20,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
+ - name: Reject any VCS dependencies
+ shell: python
+ run: |
+ import re, tomllib
+ deps = tomllib.load(open('pyproject.toml',
'rb'))['build-system']['requires']
+ if rejects := list(filter(re.compile(r'@[^+]+').search, deps)):
+ rejects = " \n".join(sorted(rejects))
+ raise Exception(f'VCS dependencies were detected in
[build-system]:\n {rejects}')
+
- name: Set up Python 3.13
uses: actions/setup-python@v5
with: