Can't find CLI source

Zathras     May 14 2:20AM 2018 CLI

Hi, last night I tried building Duplicacy CLI for a "headless" OpenBSD VM, but it seems some of the source is missing, as when trying to follow the build from source instructions I get:

conduit$ GIT_SSL_NO_VERIFY=true go get -u
go/src/ undefined: xattr.Listxattr
go/src/ undefined: xattr.Getxattr
go/src/ undefined: xattr.Listxattr
go/src/ undefined: xattr.Getxattr
go/src/ undefined: xattr.Setxattr
go/src/ undefined: xattr.Removexattr
go/src/ undefined: xattr.Setxattr

conduit$ cd go/src/
conduit$ go build duplicacy/duplicacy_main.go
duplicacy/duplicacy_main.go:23:2: cannot find package "" in any of:
        /usr/local/go/src/ (from $GOROOT)
        /home/ketil/go/src/ (from $GOPATH)

I'm a total noob when it comes to git, but I can't seem to find the cli stuff anywhere. Am I missing something, or is something missing?

gchen    May 14 2:06PM 2018

That was because the dependency needed by wasn't pulled down.

This should work:

GIT_SSL_NO_VERIFY=true go get -u
cd go/src/
go build duplicacy/duplicacy_main.go

Zathras    May 14 4:27PM 2018

Thanks - confirms my noobness doesn't it, when I assumed the three dots represented a shortening of the path...

It seems to have solved the missing cli package, but I still get the "undefined: xattr.*" errors, and no duplicacy_main binary:

conduit$ go build duplicacy/duplicacy_main.go
src/duplicacy_utils_others.go:52:19: undefined: xattr.Listxattr
src/duplicacy_utils_others.go:56:22: undefined: xattr.Getxattr
src/duplicacy_utils_others.go:65:14: undefined: xattr.Listxattr
src/duplicacy_utils_others.go:71:23: undefined: xattr.Getxattr
src/duplicacy_utils_others.go:73:5: undefined: xattr.Setxattr
src/duplicacy_utils_others.go:77:4: undefined: xattr.Removexattr
src/duplicacy_utils_others.go:82:3: undefined: xattr.Setxattr

Might this be a case of a missing/"faulty" platform check? AFAIK OpenBSD doesn't have the xattr mechanism.

gchen    May 14 9:42PM 2018

Here is a similar issue:

The solution posted there should work for OpenBSD too.

Log in to comment
Copyright © Acrosync LLC 2016-2017