Docker build fails at Step 7 "go build..." #175

Closed
opened 2018-12-05 12:27:27 +00:00 by Wheest · 1 comment

Pulling a fresh copy from master, and running:

docker build -t openpriv/cwtch-server:latest .

inside the root dir of the repo starts the build process, but fails at step 7 with the message

Step 7/21 : RUN go build -ldflags "-extldflags '-static'"
 ---> Running in 2a4e0d790fd7
# cwtch.im/cwtch/peer/connections
../../peer/connections/peerpeerconnection.go:115:5: rc.TraceLog undefined (type *connection.Connection has no field or method TraceLog)
../../peer/connections/peerserverconnection.go:60:5: rc.TraceLog undefined (type *connection.Connection has no field or method TraceLog)
The command '/bin/sh -c go build -ldflags "-extldflags '-static'"' returned a non-zero code: 2

Can reproduce error on multiple runs, and have tested on amd64 and arm7l GNU/Linux machines.

Both machines have Go1.11.2, but since it's a Docker image this shouldn't be an issue.

EDIT:
Now have been trying to build outside of a container, and getting the same build failure.

Need to see if I can setup emacs to open the source file where goricochet.Open() is defined, even if it's an outside dependency :O

Pulling a fresh copy from master, and running: `docker build -t openpriv/cwtch-server:latest .` inside the root dir of the repo starts the build process, but fails at step 7 with the message ``` Step 7/21 : RUN go build -ldflags "-extldflags '-static'" ---> Running in 2a4e0d790fd7 # cwtch.im/cwtch/peer/connections ../../peer/connections/peerpeerconnection.go:115:5: rc.TraceLog undefined (type *connection.Connection has no field or method TraceLog) ../../peer/connections/peerserverconnection.go:60:5: rc.TraceLog undefined (type *connection.Connection has no field or method TraceLog) The command '/bin/sh -c go build -ldflags "-extldflags '-static'"' returned a non-zero code: 2 ``` Can reproduce error on multiple runs, and have tested on amd64 and arm7l GNU/Linux machines. Both machines have Go1.11.2, but since it's a Docker image this shouldn't be an issue. EDIT: Now have been trying to build outside of a container, and getting the same build failure. Need to see if I can setup emacs to open the source file where `goricochet.Open()` is defined, even if it's an outside dependency :O
Owner

fixed with #174 being merged
libricochet-go was a merge and api change ahead for a day until cwtch caught up

tho this is a good reminder we have some users already and need to be more careful about downstream api changes.

In the future when removing or changing api in a breaking way, we may want to strategize better. In this case I could have removed useage of rc.TraceLog from Cwtch first

Thanks!

fixed with #174 being merged libricochet-go was a merge and api change ahead for a day until cwtch caught up tho this is a good reminder we have some users already and need to be more careful about downstream api changes. In the future when removing or changing api in a breaking way, we may want to strategize better. In this case I could have removed useage of rc.TraceLog from Cwtch first Thanks!
dan closed this issue 2018-12-05 18:29:28 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch#175
No description provided.