Metalnem / zinio

This command line tool removes DRM from magazines in your digital Zinio library
MIT License
51 stars 20 forks source link

Can't build on a clean Go Docker image #9

Closed ConorIA closed 7 years ago

ConorIA commented 7 years ago

Hi there, I tried to build because I was running into #7 when I was using the latest release. It seems that Unidoc 2.0 has made some significant changes to the way the lib works. I wonder if it is worth it to update the code, so that homebuilders could give it a shot.

Metalnem commented 7 years ago

I have just updated the README file with the instructions on how to build the the application from source, please check it out.

Metalnem commented 7 years ago

You didn’t download Zinio using go get. You should run the following command:

go get -u github.com/metalnem/zinio

Your zinio directory will the be in $GOPATH/src/github.com/metalnem/zinio—run dep ensure from there.

Nemanja

On Sep 30, 2017, at 20:57, Conor Anderson notifications@github.com wrote:

Thanks for the help. However, now I am getting:

root@fd478d200dc5:/usr/src/zinio# go get -u github.com/golang/dep/cmd/dep root@fd478d200dc5:/usr/src/zinio# dep ensure /usr/src/zinio is not within a known GOPATH/src — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

ConorIA commented 7 years ago

Perfect! Thanks for the tip. I actually figured out a workaround just before you posted your comment. This is the sequence of commands, if anyone else is curious:

On main machine:

sudo docker run -it --rm -v "$PWD":/usr/src/zinio -w /usr/src/zinio golang:1.8 bash

Within the docker image:

go get -u github.com/golang/dep/cmd/dep
export GOPATH=$GOPATH:$PWD
dep ensure
go build