Package Details: duplicacy 3.2.3-2

Git Clone URL: https://aur.archlinux.org/duplicacy.git (read-only, click to copy)
Package Base: duplicacy
Description: A new generation cloud backup tool based on lock-free deduplication
Upstream URL: https://duplicacy.com/
Licenses: custom
Submitter: youngian
Maintainer: youngian (algebro, Taijian)
Last Packager: Taijian
Votes: 25
Popularity: 0.111533
First Submitted: 2017-09-05 18:23 (UTC)
Last Updated: 2023-11-06 09:21 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

dc46and2 commented on 2023-11-05 19:33 (UTC) (edited on 2023-11-05 19:33 (UTC) by dc46and2)

The -modcacherw in GOFLAGS is supposed to fix the "cannot remove" errors with module cache directories. However, the flag is set in the build function, while it seems the modules are cached in the prepare function, so the module directories are still created with the wrong permissions. To fix it, I suggest setting GOFLAGS at the global level (outside of any function) so it is effective in all functions. E.g.:

diff --git a/PKGBUILD b/PKGBUILD
index 2560235..8f0df8a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,6 +13,8 @@ makedepends=('go' 'git')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/gilbertchen/$pkgname/archive/v$pkgver.tar.gz")
 sha256sums=('8c8e30fb24a60e1a2c0cc11e0f408114163d6d911c7824000913fec88f31e32e')

+export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+
 prepare() {
   cd "$pkgname-$pkgver/$pkgname"

@@ -28,7 +30,6 @@ build() {
   export CGO_CFLAGS="${CFLAGS}"
   export CGO_CXXFLAGS="${CXXFLAGS}"
   export CGO_LDFLAGS="${LDFLAGS}"
-  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
   GOPATH="$srcdir/$pkgname-$pkgver/$pkgname" go build -x
 }

flaviut commented on 2023-10-08 19:09 (UTC)

Seeing a lot of errors like rm: cannot remove '$HOME/.cache/yay/duplicacy/src/duplicacy-3.2.2/duplicacy/pkg/mod/go.opencensus.io@v0.22.3/zpages/zpages_test.go': Permission denied on build. Seems to be related to https://github.com/golang/go/issues/35615

Can be worked around by adding chmod u+w -R "$srcdir/$pkgname-$pkgver/$pkgname" in the prepare() step right after go get.

djadala commented on 2023-05-29 12:12 (UTC)

Hi, Don't assume that GO111MODULE are 'on' or 'auto', build fails if GO111MODULE="off".

vmsh0 commented on 2022-10-02 08:23 (UTC)

The build is currently failing with:

src/github.com/gilbertchen/duplicacy/src/duplicacy_dropboxstorage.go:28:48: not enough arguments in call to dropbox.NewConfig
    have (string)
    want (string, string, string)
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: duplicacy

ncoder-2 commented on 2021-03-01 15:36 (UTC) (edited on 2021-03-01 15:37 (UTC) by ncoder-2)

I'm still getting a build error:

==> Starting build()...
WORK=/tmp/go-build325075663
go: cannot find main module, but found Gopkg.lock in /tmp/duplicacy/src/duplicacy-2.7.2
    to create a module there, run:
    cd .. && go mod init
==> ERROR: A failure occurred in build().
    Aborting...

youngian commented on 2021-03-01 03:07 (UTC)

Thanks for the reports. I pushed a new build that hopefully fixes both of these issues.

Askannz commented on 2021-02-28 00:00 (UTC)

@ncoder-2 setting the env var GO111MODULE=auto lets the build go past that error, but I am getting another one during compilation:

src/github.com/gilbertchen/duplicacy/src/duplicacy_swiftstorage.go:132:31: not enough arguments in call to connection.Authenticate
        have ()
        want ("context".Context)
src/github.com/gilbertchen/duplicacy/src/duplicacy_swiftstorage.go:137:34: not enough arguments in call to connection.Container
        have (string)
        want ("context".Context, string)
src/github.com/gilbertchen/duplicacy/src/duplicacy_swiftstorage.go:171:47: not enough arguments in call to storage.connection.ObjectsAll
        have (string, *swift.ObjectsOpts)
        want ("context".Context, string, *swift.ObjectsOpts)
src/github.com/gilbertchen/duplicacy/src/duplicacy_swiftstorage.go:193:40: not enough arguments in call to storage.connection.ObjectDelete
        have (string, string)
        want ("context".Context, string, string)
src/github.com/gilbertchen/duplicacy/src/duplicacy_swiftstorage.go:198:38: not enough arguments in call to storage.connection.ObjectMove
        have (string, string, string, string)
        want ("context".Context, string, string, string, string)
src/github.com/gilbertchen/duplicacy/src/duplicacy_swiftstorage.go:210:45: not enough arguments in call to storage.connection.Object
        have (string, string)
        want ("context".Context, string, string)
src/github.com/gilbertchen/duplicacy/src/duplicacy_swiftstorage.go:226:47: not enough arguments in call to storage.connection.ObjectOpen
        have (string, string, bool, nil)
        want ("context".Context, string, string, bool, swift.Headers)
src/github.com/gilbertchen/duplicacy/src/duplicacy_swiftstorage.go:237:39: not enough arguments in call to storage.connection.ObjectPut
        have (string, string, *RateLimitedReader, bool, string, string, nil)
        want ("context".Context, string, string, io.Reader, bool, string, string, swift.Headers)

ncoder-2 commented on 2021-02-22 14:34 (UTC) (edited on 2021-02-22 14:34 (UTC) by ncoder-2)

I'm getting the following error during the prepare() phase:

go: cannot find main module, but found Gopkg.lock in /tmp/duplicacy/src/duplicacy-2.7.2 to create a module there, run: cd .. && go mod init