commit b8c9048044a6a25bd4ab375f82c99b3b2befdef3
Author: Otto Kekäläinen <otto@debian.org>
Date: Sun Sep 13 22:22:27 2026 +0800
Add Build-Depends for golang-github-dlclark-regexp2-dev (v0)
With the new module aware builds this package failed to build on error:
src/github.com/trufflesecurity/trufflehog/v3/main.go:13:2: github.com/alecthomas/chroma@v0.10.0 (replaced by ./src/github.com/alecthomas/chroma): reading src/github.com/alecthomas/chroma/go.mod: open /debcraft/source/debian/_build/src/github.com/alecthomas/chroma/go.mod: no such file or directory
src/github.com/trufflesecurity/trufflehog/v3/main.go:14:2: github.com/alecthomas/chroma@v0.10.0 (replaced by ./src/github.com/alecthomas/chroma): reading src/github.com/alecthomas/chroma/go.mod: open /debcraft/source/debian/_build/src/github.com/alecthomas/chroma/go.mod: no such file or directory
src/github.com/trufflesecurity/trufflehog/v3/main.go:15:2: github.com/alecthomas/chroma@v0.10.0 (replaced by ./src/github.com/alecthomas/chroma): reading src/github.com/alecthomas/chroma/go.mod: open /debcraft/source/debian/_build/src/github.com/alecthomas/chroma/go.mod: no such file or directory
src/github.com/trufflesecurity/trufflehog/v3/main.go:16:2: github.com/alecthomas/chroma@v0.10.0 (replaced by ./src/github.com/alecthomas/chroma): reading src/github.com/alecthomas/chroma/go.mod: open /debcraft/source/debian/_build/src/github.com/alecthomas/chroma/go.mod: no such file or directory
src/github.com/trufflesecurity/trufflehog/v3/main.go:13:2: github.com/dlclark/regexp2@v1.4.0 (replaced by ./src/github.com/dlclark/regexp2): reading src/github.com/dlclark/regexp2/go.mod: open /debcraft/source/debian/_build/src/github.com/dlclark/regexp2/go.mod: no such file or directory
src/github.com/trufflesecurity/trufflehog/v3/main.go:14:2: github.com/dlclark/regexp2@v1.4.0 (replaced by ./src/github.com/dlclark/regexp2): reading src/github.com/dlclark/regexp2/go.mod: open /debcraft/source/debian/_build/src/github.com/dlclark/regexp2/go.mod: no such file or directory
src/github.com/trufflesecurity/trufflehog/v3/main.go:15:2: github.com/dlclark/regexp2@v1.4.0 (replaced by ./src/github.com/dlclark/regexp2): reading src/github.com/dlclark/regexp2/go.mod: open /debcraft/source/debian/_build/src/github.com/dlclark/regexp2/go.mod: no such file or directory
src/github.com/trufflesecurity/trufflehog/v3/main.go:16:2: github.com/dlclark/regexp2@v1.4.0 (replaced by ./src/github.com/dlclark/regexp2): reading src/github.com/dlclark/regexp2/go.mod: open /debcraft/source/debian/_build/src/github.com/dlclark/regexp2/go.mod: no such file or directory
Fix this by intentionally depending on the v0 version of the indirect
dependency to force the correct version to be available regardless of
any issues in indirect dependency tree.
commit 0fceefd7dc319edbc4eba297f0d21803d0bf3397
Author: Otto Kekäläinen <otto@debian.org>
Date: Mon Sep 7 20:43:01 2026 +0300
Make the XS-Go-Import-Path line match the go.mod contents to fix build
The new module aware build system in dh-go expects the import path to
match the exact path (with major version included) as in go.mod.
This fixes the build error:
dh_auto_build: error: Unable to open directory debian/_build/src/github.com/trufflesecurity/trufflehog/v3 No such file or directory
Among the 4 debian patches available in version 3.60.0-1 of the package, we noticed the following issues: