Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#74310 - [golang-github-nfnt-resize] FTBFS

Attached to Project: Community Packages
Opened by Piggy NL (piggynl) - Saturday, 02 April 2022, 12:31 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 24 September 2023, 10:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Package version: 0.0.20180222-2

Build log:
==> Retrieving sources...
-> Found golang-github-nfnt-resize-83c6a9932646f83e3267f353373d47347b6036b2.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
-> Extracting golang-github-nfnt-resize-83c6a9932646f83e3267f353373d47347b6036b2.tar.gz with bsdtar
==> Starting check()...
pattern ./...: directory prefix . does not contain main module or its selected dependencies
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
==> ERROR: A failure occurred in check().

It is caused by missing go.mod file. Since 1.16, golang will build packages in module-aware mode by default, see:

Solution: Apply this patch to PKGBUILD.

@@ -9,8 +9,15 @@ arch=('any')
+ "$pkgname-add-go_mod.patch::")
+ 'fc398cbd4a399e98026f2e5384ca8628208fd1f97604458c10db4452037987d4cf7205e50f0c600c1de8ca491f8c2926bb6439bf19fb35df36ba6866a4234016')
+prepare() {
+ cd "$srcdir/resize-$_commit"
+ patch -Np1 -i "$srcdir/$pkgname-add-go_mod.patch"

check() {
export GOPATH="$srcdir/build:/usr/share/gocode"
This task depends upon

Closed by  Jelle van der Waa (jelly)
Sunday, 24 September 2023, 10:41 GMT
Reason for closing:  Deferred
Additional comments about closing:  Dropped from repos