linka-cloud / d2vm

Build Virtual Machine Image from Dockerfile or Docker image
Apache License 2.0
208 stars 31 forks source link

sparsecat-linux-amd64 missing #12

Closed welldone43 closed 1 year ago

welldone43 commented 1 year ago

Running go install ./cmd/d2vm produces: cmd/d2vm/run/util.go:35:12: pattern sparsecat-linux-amd64: no matching files found

The related file in util.go contains: //go:embed sparsecat-linux-amd64

A potential reason why that is not found is due to the .ignorefile which contains /cmd/d2vm/run/sparsecat-linux-amd64

That causes git to not include that file/folder

Could you please add it to the repository, or did I miss something on the structure?

Adphi commented 1 year ago

You need to run go generate ./... before go install But you should use make install as it will set the go build flags.