Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot load embed while compiling #465

Closed
ridvankaratas opened this issue Mar 16, 2022 · 12 comments
Closed

cannot load embed while compiling #465

ridvankaratas opened this issue Mar 16, 2022 · 12 comments
Labels

Comments

@ridvankaratas
Copy link

hi,

I wanted to compile the source via ./do.sh goget and I got this error:

build github.com/vouch/vouch-proxy: cannot load embed: malformed module path "embed": missing dot in first path element

when I want to ./do.sh build, it doesn't just run and it gives some flags to use

is it possible to get a compiled binary?

@dco5000
Copy link

dco5000 commented Mar 16, 2022

I also am unable to install and config on ubuntu. I get same message about the malformed "embed". Please suggest a work around.

@bnfinet
Copy link
Member

bnfinet commented Mar 16, 2022

@ridvankaratas @dco5000 I cannot reproduce the behavior. VP compiles fine for me.

Could you please describe your operating environment, the version and provide the error and in general just throw a bunch of information here. If you end up providing logs and conf, that will go in a gist as per the README. Whatever the computer is telling you, show that here please.

@bnfinet
Copy link
Member

bnfinet commented Mar 16, 2022

@ridvankaratas wrt to compiled binaries, that's a dup of #108

@bnfinet
Copy link
Member

bnfinet commented Mar 16, 2022

a quick search reveals this.. pjvds/tunl#5 (comment)

what version of Go are you using?

@ridvankaratas
Copy link
Author

ridvankaratas commented Mar 16, 2022

hello. thank you for the quick response. using go 1.16 solved goget issue. on the other hand, as I explained in the initial post, build command is not running as expected (I think)

./do.sh build
error: unknown option `sort=v:refname'
usage: git tag [-a|-s|-u ] [-f] [-m |-F ] []
or: git tag -d ...
or: git tag -l [-n[]] [--contains ] [--points-at ]
[...]
or: git tag -v ...

-l, --list            list tag names
-n[<n>]               print <n> lines of each tag message
-d, --delete          delete tags
-v, --verify          verify tags

Tag creation options
-a, --annotate annotated tag, needs a message
-m, --message
tag message
-F, --file read message from file
-s, --sign annotated and GPG-signed tag
--cleanup how to strip spaces and #comments from message
-u, --local-user
use another key to sign the tag
-f, --force replace the tag if exists
--column[=<style>] show tag list in columns

Tag listing options
--contains print only tags that contain the commit
--points-at print only tags of the object

get "google.golang.org/protobuf": found meta tag vcs.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at //google.golang.org/protobuf?go-get=1
go: cloud.google.com/[email protected] requires
google.golang.org/[email protected] requires
google.golang.org/[email protected] requires
google.golang.org/[email protected]: invalid version: git fetch --unshallow -f origin in /root/go/pkg/mod/cache/vcs/a6c5d6b8734f41936247415390043c979295646fadef73c39eedc1735cd0fef4: exit status 128:
fatal: git fetch-pack: expected shallow list

therefore, there is no vouch binary

@bnfinet
Copy link
Member

bnfinet commented Mar 16, 2022

@ridvankaratas what operating environment are you using?

Did you search for that error? What did you find?

Try go build .

@ridvankaratas
Copy link
Author

I found this that I thought might be relevant golang/go#34266
I'm on Centos7 with go version go1.16.13 linux/amd64

@bnfinet
Copy link
Member

bnfinet commented Mar 17, 2022

@ridvankaratas did you try..

go build .

What happened?

@ridvankaratas
Copy link
Author

hi, adding output from go build command

go build
go: cloud.google.com/[email protected] requires
google.golang.org/[email protected] requires
google.golang.org/[email protected] requires
google.golang.org/[email protected]: invalid version: git fetch --unshallow -f origin in /root/go/pkg/mod/cache/vcs/a6c5d6b8734f41936247415390043c979295646fadef73c39eedc1735cd0fef4: exit status 128:
fatal: git fetch-pack: expected shallow list

@bnfinet
Copy link
Member

bnfinet commented Mar 17, 2022

This one seems a bit closer when searching for

"exit status 128: fatal: git fetch-pack: expected shallow list"

golang/go#38373

There appears to be something wrong with the setup of either go or git or both in your operating environment. Are you able to build other golang programs?

@ridvankaratas
Copy link
Author

ridvankaratas commented Mar 17, 2022

I removed go1.16 and installed go1.18
goget and build worked without any issue. also vouch-proxy is running (at least it shows running I haven't tested anything yet)

we won't know whether it was related to go1.16 or go1.16 setup itself. bu we do know go1.18 works at least for the compile.

again thank you for the quick response.

@bnfinet
Copy link
Member

bnfinet commented Mar 17, 2022

@ridvankaratas glad to hear VP is working. Thanks for the kind words.

@dco5000 I'm going to close this but feel free to continue the thread if you're still having problems

@bnfinet bnfinet closed this as completed Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants