Skip to content

Commit caf16b1

Browse files
authored
Merge pull request #15 from aboutcode-org/13-detect-go-packages
Detect go packages
2 parents 602f60e + 188fa5b commit caf16b1

25 files changed

+18556
-569
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ CLI_ARGS=$1
2828
################################
2929

3030
# Requirement arguments passed to pip and used by default or with --dev.
31-
REQUIREMENTS="--editable . --constraint requirements.txt"
32-
DEV_REQUIREMENTS="--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt"
31+
REQUIREMENTS="--editable . --constraint requirements.txt scancode-toolkit"
32+
DEV_REQUIREMENTS="--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt scancode-toolkit"
3333
DOCS_REQUIREMENTS="--editable .[docs] --constraint requirements.txt"
3434

3535
# where we create a virtualenv

configure.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
@rem ################################
2727

2828
@rem # Requirement arguments passed to pip and used by default or with --dev.
29-
set "REQUIREMENTS=--editable . --constraint requirements.txt"
30-
set "DEV_REQUIREMENTS=--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt"
31-
set "DOCS_REQUIREMENTS=--editable .[docs] --constraint requirements.txt"
29+
set "REQUIREMENTS=--editable . --constraint requirements.txt scancode-toolkit"
30+
set "DEV_REQUIREMENTS=--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt scancode-toolkit"
31+
set "DOCS_REQUIREMENTS=--editable .[docs] --constraint requirements.txt scancode-toolkit"
3232

3333
@rem # where we create a virtualenv
3434
set "VIRTUALENV_DIR=venv"

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ python_requires = >=3.8
4343
install_requires =
4444
commoncode
4545
plugincode
46-
scancode-toolkit
4746
typecode
4847

4948
[options.entry_points]

src/go_inspector/bin/GoReSym_lin

-1.39 MB
Binary file not shown.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
about_resource: GoReSym_lin
22
name: goresym
3-
version: 2.7.2
4-
download_url: https://github.com/mandiant/GoReSym/releases/download/v2.7.2/GoReSym.zip
5-
package_url: pkg:github/mandiant/[email protected]?download_url=https://github.com/mandiant/GoReSym/releases/download/v2.7.2/GoReSym.zip
3+
version: 011fc7d5c9c2362871dfe88a1295a43ee6b4d273
4+
download_url: https://github.com/pombredanne/GoReSym/archive/011fc7d5c9c2362871dfe88a1295a43ee6b4d273.zip
5+
package_url: pkg:github/pombredanne/GoReSym@011fc7d5c9c2362871dfe88a1295a43ee6b4d273
66
copyright: Copyright (c) 2022 MANDIANT
7-
checksum_sha1: d1a3252a3a174c8baacbe16b8d060b3affc9d05b
8-
checksum_sha256: 24c50fc10f169d36814b43da006bb5cd313baa04fcf94af99c730ef56eee62fe
97
license_expression: mit
10-
license_text_file: GoReSym_lin.LICENSE
8+
license_text_file: GoReSym_lin.LICENSE
9+
notes: this is a patched version until https://github.com/mandiant/GoReSym/pull/60 is accepted
10+
and merged.

src/go_inspector/bin/GoReSym_lin.results.json

Lines changed: 510 additions & 0 deletions
Large diffs are not rendered by default.

src/go_inspector/bin/update.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ sha256sum -c GoReSym.zip.sums
2222
unzip -qd goresymzip GoReSym.zip
2323
mv goresymzip/GoReSym_lin .
2424
chmod u+x GoReSym_lin
25+
strip GoReSym_lin
2526

2627
rm -rf GoReSym.zip goresymzip
2728

28-
# finally run a binary analysis on this GoReSym executable and update the ABOUT files accordingly
29+
# finally run a binary analysis on this GoReSym executable, diff and update the ABOUT files accordingly
30+
./GoReSym_lin -p -no-functions ./GoReSym_lin > GoReSym_lin.results.json

0 commit comments

Comments
 (0)