Skip to content

Commit

Permalink
Revert "Add proper "netgo" compiling, thanks to rsc ♥"
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <jfrazelle@users.noreply.github.com> (github: jfrazelle)
  • Loading branch information
Jessie Frazelle authored and jessfraz committed Jan 14, 2015
1 parent 5136b11 commit e7cfb1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ RUN cd /usr/local/go/src \
./make.bash --no-clean 2>&1; \
done

# Reinstall standard library with netgo
RUN go clean -i net && go install -tags netgo std

# We still support compiling with older Go, so need to grab older "gofmt"
ENV GOFMT_VERSION 1.3.3
RUN curl -sSL https://storage.googleapis.com/golang/go${GOFMT_VERSION}.$(go env GOOS)-$(go env GOARCH).tar.gz | tar -C /go/bin -xz --strip-components=2 go/bin/gofmt
Expand Down
3 changes: 1 addition & 2 deletions project/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ fi
EXTLDFLAGS_STATIC='-static'
# ORIG_BUILDFLAGS is necessary for the cross target which cannot always build
# with options like -race.
ORIG_BUILDFLAGS=( -a -tags "netgo static_build $DOCKER_BUILDTAGS" -installsuffix netgo )
# see https://github.com/golang/go/issues/9369#issuecomment-69864440 for why -installsuffix is necessary here
ORIG_BUILDFLAGS=( -a -tags "netgo static_build $DOCKER_BUILDTAGS" )
BUILDFLAGS=( $BUILDFLAGS "${ORIG_BUILDFLAGS[@]}" )
# Test timeout.
: ${TIMEOUT:=30m}
Expand Down

0 comments on commit e7cfb1c

Please sign in to comment.