Skip to content

Commit 60403f8

Browse files
committed
Debugging CI/CD failure
1 parent 1feb6f7 commit 60403f8

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,20 @@ jobs:
4040
- name: Pyflakes lint
4141
shell: bash
4242
run: |
43+
set +e
4344
python -m pip install pyflakes
44-
OUT=$(git ls-files '*.py' | grep -v '^thirdparty/' | xargs python -m pyflakes 2>&1) || true
45-
OUT=$(echo "$OUT" | grep -v ' redefines ')
46-
if [ -n "$OUT" ]; then echo "$OUT"; exit 1; fi
47-
echo "pyflakes: clean"
45+
python -c "
46+
import subprocess, sys
47+
files = subprocess.check_output(['git', 'ls-files', '*.py']).decode().splitlines()
48+
files = [f for f in files if not f.startswith('thirdparty/')]
49+
p = subprocess.Popen([sys.executable, '-m', 'pyflakes'] + files, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
50+
out, _ = p.communicate()
51+
lines = [l for l in out.decode().splitlines() if ' redefines ' not in l]
52+
if lines:
53+
print('\n'.join(lines))
54+
sys.exit(1)
55+
print('pyflakes: clean')
56+
"
4857
4958
- name: Basic import test
5059
run: python -c "import sqlmap; import sqlmapapi"

data/txt/sha256sums.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ e033b20a0f7821797a10f4bf4235723f38c7db551c611fbb713faa621b123c4a lib/core/optio
189189
9bf174058f15d14e24e94f9aaf42df045119d3617c6c54bd2f3af79b462f331d lib/core/replication.py
190190
0b8c38a01bb01f843d94a6c5f2075ee47520d0c4aa799cecea9c3e2c5a4a23a6 lib/core/revision.py
191191
888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
192-
ad4e8f1a5cd72c74e8686a15e70195abcee977b1f874667af77ffca0614b35c5 lib/core/settings.py
192+
5210684c1d6eecef0305077b22809569595ed039e3c1852ceeeb78338d8fa9b2 lib/core/settings.py
193193
c7804223319e18eb0b8e2cbf0a8b6896d1cefb7b0b1a2e9f1cf826a8a3b56750 lib/core/shell.py
194194
a2e98a94b231432736d6b304fc75525c8b5fdb4768c418387c5b4c1a610dad64 lib/core/subprocessng.py
195195
19f1e3c5e3ba703d28d510cd7a9ab8284d5fbe9df5ce7e77c86e5931571364b7 lib/core/target.py

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.6.178"
23+
VERSION = "1.10.6.179"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)