Package Details: semgrep-bin 1.100.0-2

Git Clone URL: https://aur.archlinux.org/semgrep-bin.git (read-only, click to copy)
Package Base: semgrep-bin
Description: Fast and syntax-aware semantic code pattern search for many languages: like grep but for code
Upstream URL: https://github.com/returntocorp/semgrep
Keywords: code grep
Licenses: LGPL2.1
Provides: semgrep
Submitter: aloxaf
Maintainer: username227 (ejedev)
Last Packager: username227
Votes: 7
Popularity: 0.40
First Submitted: 2020-05-23 02:08 (UTC)
Last Updated: 2024-12-24 13:15 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

shulhan commented on 2023-05-10 16:18 (UTC)

Hi, thanks for the package.

I think the latest PKGBUILD missing python-pip in the makedepends.

PSA: Pre-build package is available at https://build.kilabit.info/

jahway603 commented on 2023-03-27 16:58 (UTC)

@aloxaf can you please update this package? It is at Release v1.15.0 now.

0xdbe commented on 2022-11-02 20:23 (UTC)

Thanks aloxaf for updating to 0.118 🙏

Here is file for 0.120.0: https://pastebin.com/5YAJeAnv

0xdbe commented on 2022-10-21 07:13 (UTC)

File for 0.118.0: https://pastebin.com/ecHfK3Fg

0xdbe commented on 2022-10-13 08:03 (UTC)

File for Semgrep 0.117.0: https://pastebin.com/zLsCSTFJ

0xdbe commented on 2022-10-07 15:34 (UTC) (edited on 2022-10-07 15:34 (UTC) by 0xdbe)

In waiting to be able to update this package, here is the PKGBUILD for Semgrep 0.116.0: https://pastebin.com/y4J3tCr6

0xdbe commented on 2022-09-27 11:56 (UTC)

File for 0.115.0: https://pastebin.com/zwv97SrC

bbrks commented on 2022-08-10 08:34 (UTC) (edited on 2022-08-10 09:02 (UTC) by bbrks)

Needs python-lsp-jsonrpc as a dependency as of 0.98.0

https://github.com/returntocorp/semgrep/pull/5378

$ semgrep --help
Traceback (most recent call last):
  File "/usr/bin/semgrep", line 33, in <module>
    sys.exit(load_entry_point('semgrep==0.104.0', 'console_scripts', 'semgrep')())
  File "/usr/bin/semgrep", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/semgrep/__main__.py", line 4, in <module>
    from semgrep.cli import cli
  File "/usr/lib/python3.10/site-packages/semgrep/cli.py", line 8, in <module>
    from semgrep.commands.lsp import lsp
  File "/usr/lib/python3.10/site-packages/semgrep/commands/lsp.py", line 8, in <module>
    from semgrep.lsp.server import run_server
  File "/usr/lib/python3.10/site-packages/semgrep/lsp/server.py", line 12, in <module>
    from pylsp_jsonrpc.dispatchers import MethodDispatcher
ModuleNotFoundError: No module named 'pylsp_jsonrpc'

0xdbe commented on 2021-11-18 11:44 (UTC)

I tried to update this package for Semgrep 0.73.0: https://pastebin.com/2iWxKPNA

But you have to install python-click-option-group from AUR (https://aur.archlinux.org/packages/python-click-option-group/)

Also, Semgrep uses wcmatch==8.2 and arch linux uses python-wcmatch-8.3-1

Workaround: use a virtualenv

Bujiraso commented on 2021-08-26 11:28 (UTC)

One more -- there's still something missing once it installs.

Seems 'peewee' was not installed and is necessary.

Traceback (most recent call last):
  File "/usr/bin/semgrep", line 33, in <module>
    sys.exit(load_entry_point('semgrep==0.62.0', 'console_scripts', 'semgrep')())
  File "/usr/bin/semgrep", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/semgrep/__main__.py", line 5, in <module>
    from semgrep.cli import cli
  File "/usr/lib/python3.9/site-packages/semgrep/cli.py", line 6, in <module>
    import semgrep.config_resolver
  File "/usr/lib/python3.9/site-packages/semgrep/config_resolver.py", line 24, in <module>
    from semgrep.error import InvalidRuleSchemaError
  File "/usr/lib/python3.9/site-packages/semgrep/error.py", line 19, in <module>
    from semgrep.util import with_color
  File "/usr/lib/python3.9/site-packages/semgrep/util.py", line 19, in <module>
    import pkg_resources
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'peewee~=3.14.4' distribution was not found and is required by semgrep