Package Details: lego-git r798.f0cfdff3-2

Git Clone URL: https://aur.archlinux.org/lego-git.git (read-only)
Package Base: lego-git
Description: Lets Encrypt client and ACME library written in Go (master branch / unstable)
Upstream URL: https://go-acme.github.io/lego/
Keywords: lego letsencrypt
Licenses: MIT
Conflicts: lego
Provides: lego
Submitter: DeltaEvo
Maintainer: ldez
Last Packager: ldez
Votes: 5
Popularity: 0.022690
First Submitted: 2017-01-17 22:10
Last Updated: 2019-04-23 10:39

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

ldez commented on 2019-03-19 19:45

@ptrxyz I don't reproduce your problem.

Try to uninstall lego-git, reinstall

ptrxyz commented on 2019-03-19 10:20

Hm, does not build anymore:

==> Starting build()...
rm -rf dist/ builds/ cover.out
Version: 3684cc738d370bce685da7a80744c6cb8ffaef4f
go build -v -ldflags '-X "main.version=3684cc738d370bce685da7a80744c6cb8ffaef4f"' -o dist/lego ./cmd/lego/
cmd/lego/main.go:11:2: cannot find package "github.com/go-acme/lego/cmd" in any of:
    /usr/lib/go/src/github.com/go-acme/lego/cmd (from $GOROOT)
    /home/json/go/src/github.com/go-acme/lego/cmd (from $GOPATH)
cmd/lego/main.go:12:2: cannot find package "github.com/go-acme/lego/log" in any of:
    /usr/lib/go/src/github.com/go-acme/lego/log (from $GOROOT)
    /home/json/go/src/github.com/go-acme/lego/log (from $GOPATH)
cmd/lego/main.go:13:2: cannot find package "github.com/urfave/cli" in any of:
    /usr/lib/go/src/github.com/urfave/cli (from $GOROOT)
    /home/json/go/src/github.com/urfave/cli (from $GOPATH)
make: *** [Makefile:20: build] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
Error making: lego-git

Probably a problem with the code, not the PKGBUILD, but still worth mentioning :D

ldez commented on 2019-02-02 03:30

Good catch! I fixed that.

Besides, I recommend the use of https://aur.archlinux.org/packages/lego/

RiCON commented on 2019-02-02 02:30

PKGBUILD needs a small fix:

-  install -Dm755  "${srcdir}/${_legopath}/dist/${_pkgname}" "${pkgdir}/usr/bin"
+  install -Dm755  "${srcdir}/${_legopath}/dist/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"

otherwise the binary will be installed as bin, which won't work, since /usr/bin exists as directory already.