Package Details: tget-git 0.1.1.r1.g77add45-1

Git Clone URL: https://aur.archlinux.org/tget-git.git (read-only, click to copy)
Package Base: tget-git
Description: Like wget but for torrents (latest commit)
Upstream URL: https://github.com/sweetbbak/tget
Keywords: bittorrent cli magnet torrent
Licenses: MIT
Conflicts: nodejs-tget, tget
Provides: tget
Submitter: kseistrup
Maintainer: kseistrup
Last Packager: kseistrup
Votes: 1
Popularity: 0.39
First Submitted: 2024-07-12 16:37 (UTC)
Last Updated: 2024-07-15 08:27 (UTC)

Latest Comments

kseistrup commented on 2024-07-15 10:14 (UTC)

@kozaki, I'm glad it works for you now. :)

kozaki commented on 2024-07-15 08:17 (UTC)

$ sudo pacman -S go \
env GOROOT=/usr/lib/go env GOPROXY=https://proxy.golang.org,direct makepkg -sri

does the job.
@kseistrup you got these go package env variables right, it seems :-)

Now let's see how tget works compared to rtorrent that I used for so long.

kseistrup commented on 2024-07-14 18:31 (UTC) (edited on 2024-07-14 18:32 (UTC) by kseistrup)

Hm, earlier on you showed me:

$ go env GOROOT
/usr/lib/go/bin

Shouldn't GOROOT just be /usr/lib/go? Because you also showed me:

… package fmt is not in std (/usr/lib/go/bin/src/fmt)

and the src directory should be /usr/lib/go/src, not /usr/lib/go/bin/src.

kseistrup commented on 2024-07-14 18:27 (UTC)

I'm unsure what to suggest…

What happens if you comment out the go mod tidy in the prepare() function?

And does it help if you clear go's caches and try again?

for opt in cache testcache modcache; do go clean "-$opt"; done

kozaki commented on 2024-07-14 18:03 (UTC)

makedep yeap.
Setting GOPROXY as it is for you goes way further though it still fails:

go: downloading github.com/bits-and-blooms/bitset v1.2.2
==> Starting pkgver()...
==> Starting build()...
cmd/tget/file.go:5:2: package fmt is not in std (/usr/lib/go/bin/src/fmt)
(...)
package github.com/sweetbbak/tget/cmd/tget
    imports runtime/cgo: cannot find package
(...)
.local/share/go/pkg/mod/github.com/pterm/pterm@v0.12.79/slog_handler.go:6:2: package log/slog is not in std (/usr/lib/go/bin/src/log/slog)
cmd/tget/main.go:9:2: package os/signal is not in std (/usr/lib/go/bin/src/os/signal)
==> ERROR: A failure occurred in build().
    Aborting...

kseistrup commented on 2024-07-14 09:07 (UTC)

@kozaki

go is a make dependency.

When I say go env GOPROXY I get https://proxy.golang.org,direct (that should be the default for a newly installed go setup). What happens if you say

env GOPROXY=https://proxy.golang.org,direct makepkg -sri

?

I agree that this is not directly a packaging issue, but it would be nice if it just worked.

kozaki commented on 2024-07-14 08:37 (UTC)

I just installed go with pacman to do some quick checks; in that case GOPROXY is indeed empty:

$ go env GOPROXY


$ go env GOROOT
/usr/lib/go/bin

$ ls -l /usr/lib/go/bin/
-rwxr-xr-x 1 root  12M  3 juil. 08:46 go
-rwxr-xr-x 1 root 2,4M  3 juil. 08:46 gofmt

Thank you for your help @kseistrup. Please note I can delete this comment as it's related to Go rather than tget.

kseistrup commented on 2024-07-13 18:37 (UTC)

@kozaki

“It works here.”

Does any of the suggestions in https://github.com/golang/go/issues/61928 help?

Is your GOPROXY variable set (go env GOPROXY)? And/or GOROOT?

kozaki commented on 2024-07-13 15:07 (UTC) (edited on 2024-07-13 15:08 (UTC) by kozaki)

Not sure what's going wrong here?

$ makepkg -sri
(...)
Cloning into 'tget'...
done.
==> Starting prepare()...
go: downloading github.com/anacrolix/torrent v1.55.0
go: downloading github.com/carlmjohnson/versioninfo v0.22.5
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/jessevdk/go-flags v1.5.0
go: downloading github.com/pterm/pterm v0.12.79
go: github.com/sweetbbak/tget/cmd/tget imports
    fmt: atomicgo.dev/cursor@v0.2.0: GOPROXY list is not the empty string, but contains no entries
    (...)
go: github.com/sweetbbak/tget/cmd/tget imports
    time: atomicgo.dev/cursor@v0.2.0: GOPROXY list is not the empty string, but contains no entries
==> ERROR: A failure occurred in prepare().
    Aborting...
==> Removing installed dependencies...