Package Details: duplicacy 3.2.5-1

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: 26
Popularity: 0.000000
First Submitted: 2017-09-05 18:23 (UTC)
Last Updated: 2025-05-04 09:49 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

toorp commented on 2026-05-29 20:03 (UTC) (edited on 2026-05-29 20:20 (UTC) by toorp)

EDIT: Nevermind, just needed to remove gcc-go and install go.

Build is failing with errors:

makepkg: ==> Starting prepare()...
makepkg error: go: module github.com/aws/aws-sdk-go is deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
makepkg: ==> Removing existing $pkgdir/ directory...
makepkg: ==> Starting build()...
makepkg error: WORK=/tmp/go-build330244509
...
...
makepkg error: ==> ERROR: A failure occurred in build().
makepkg error:     Aborting...
duplicacy: Failed - Failed to build package with makepkg
Installation complete.

oshmoz commented on 2024-11-07 10:49 (UTC)

Thank you for making a (working!) package from the last update!

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...