-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
From CGO_ENABLED=0 from make install #942
Conversation
8cdfcde
to
cb2772a
Compare
Makefile
Outdated
@@ -12,7 +12,7 @@ BUILD_FLAGS = -ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`g | |||
all: get_vendor_deps install test | |||
|
|||
install: | |||
CGO_ENABLED=0 go install $(BUILD_FLAGS) ./cmd/tendermint | |||
go install $(BUILD_FLAGS) ./cmd/tendermint | |||
|
|||
build: | |||
CGO_ENABLED=0 go build $(BUILD_FLAGS) -o build/tendermint ./cmd/tendermint/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should remove it from here too to be consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't have the same behavior on go build as per the comment. But sure, I can remove it. Will squish commits together
It was writing to stdlib packages net, x/crypto, etc. and failing when it didn't have write access to them (which it often shouldn't) Fixes issue #941 Explained in golang issue: golang/go#18981 (fixed in develop/1.10)
cb2772a
to
9657d18
Compare
Codecov Report
@@ Coverage Diff @@
## develop #942 +/- ##
===========================================
+ Coverage 58.86% 59.08% +0.22%
===========================================
Files 100 100
Lines 9784 9784
===========================================
+ Hits 5759 5781 +22
+ Misses 3476 3460 -16
+ Partials 549 543 -6 |
…#942) Bumps [docker/login-action](https://github.com/docker/login-action) from 2.1.0 to 2.2.0. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v2.1.0...v2.2.0) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
It was writing to stdlib packages net, x/crypto, etc. and failing when it didn't have write access to them (which it often shouldn't)
Fixes issue #941
Explained in golang issue: golang/go#18981 (fixed in develop/1.10)