Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Remove broken checksums now caught by go 1.11.4 #283

Merged
merged 4 commits into from
Jan 10, 2019

Conversation

pjanotti
Copy link

I was in contact with someone trying to build the repo and his golang was a new install (via brew). So he hit the same issue as Travis w/ go 1.11.4 (see #272): invalid checksum.

The problem for us is that the recommendation for this issue is to remove the old checksum, this fixes the build for go 1.11.4. However, any previous go version is going to re-introduce the incorrect checksums (I tested only with go 1.11.1). So if we merge this change and don't upgrade go to 1.11.4 on our boxes we are going to keep getting a modified go.sum (re-introducing the wrong checksums), which is fine as long as people are aware of the issue and don't commit the go.sum - in other words if this PR is merged any changes to go.mod/go.sum need to be done using go 1.11.4 and above.

See golang/go#29278 for more info about the change in golang.

Creating as DO NOT MERGE so we can discuss and perhaps adopt some other alternative, however, notice that someone setting up a brand new go env is likely to hit the issue and be unable to build the repo.

PS.: I remember in the past using brew to switch between go 1.10 and 1.11 but I am not sure if we can easily do the same for minor versions.

@songy23
Copy link
Contributor

songy23 commented Jan 8, 2019

We ran into a similar issue when building with go1.11.4. See census-ecosystem/opencensus-experiments#138.

/cc @rghetia

Copy link
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for making Go1.11.4+ as a requirement.

Copy link

@sjkaris sjkaris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also good with going to 1.11.4+

@pjanotti pjanotti merged commit de73c6b into census-instrumentation:master Jan 10, 2019
@pjanotti pjanotti deleted the go1.11.4-checksum branch January 10, 2019 15:14
fivesheep pushed a commit to fivesheep/opencensus-service that referenced this pull request Jun 12, 2019
…on#283)

* Remove broken checksums now caught by go 1.11.4

See golang/go#29278 for more info.

* Update related MD files

* Fix build_binaries docker
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants