Skip to content

build: require go1.12 #38379

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

Merged
merged 1 commit into from
Jun 26, 2019
Merged

build: require go1.12 #38379

merged 1 commit into from
Jun 26, 2019

Conversation

andreimatei
Copy link
Contributor

Since the builder was upgraded a while ago and we already have code
needing 1.12.

Release note: The minimum compiler version for building CRDB is now go
1.12.

@andreimatei andreimatei requested review from petermattis and a team June 24, 2019 20:16
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andreimatei andreimatei force-pushed the small.go-112 branch 2 times, most recently from a16da8a to 521a52d Compare June 24, 2019 21:39
@andreimatei
Copy link
Contributor Author

Some more tweaks.

Copy link
Contributor

@bdarnell bdarnell left a comment

Choose a reason for hiding this comment

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

I have another go 1.12-related cleanup in #38384.

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @andreimatei and @petermattis)


build/teamcity-assert-clean.sh, line 13 at r1 (raw file):

  git diff -a >&2 || true
  echo "Nuking build cruft. Please teach this build to clean up after itself." >&2
  run docker run --volume="$root:/nuke" --workdir="/nuke" golang:stretch /bin/bash -c "git clean -ffdx ; git submodule foreach --recursive git clean -xffd" >&2

This will automatically use 1.13 when that's released, no? Is that desirable?

Copy link
Contributor Author

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @petermattis and @RaduBerinde)


build/teamcity-assert-clean.sh, line 13 at r1 (raw file):

Previously, RaduBerinde wrote…

This will automatically use 1.13 when that's released, no? Is that desirable?

I thought so... To be honest I don't understand what this docker invocation does; how does it use go?

Copy link
Contributor Author

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @petermattis and @RaduBerinde)


build/teamcity-assert-clean.sh, line 13 at r1 (raw file):

Previously, andreimatei (Andrei Matei) wrote…

I thought so... To be honest I don't understand what this docker invocation does; how does it use go?

I guess it's just a random image that has git in it. Now the question is why does it use docker... Jordan says that maybe the system git is too old. 🤷‍♂️

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @andreimatei and @petermattis)


build/teamcity-assert-clean.sh, line 13 at r1 (raw file):

Previously, andreimatei (Andrei Matei) wrote…

I guess it's just a random image that has git in it. Now the question is why does it use docker... Jordan says that maybe the system git is too old. 🤷‍♂️

Oh.. I didn't notice it just runs git. Weird.

There is another invocation here:

# NB: Using golang:1.11.5-stretch instead of golang:stretch because of #35637.

For that one my question stands. I think we should fix that to 1.12 or things might break when 1.13 gets released.

Since the builder was upgraded a while ago and we already have code
needing 1.12.

Some assembly files no longer have any (intended) effect in go 1.12,
and their existence has proven surprisingly troublesome as their
comments indicated.

Closes cockroachdb#35637

Release note: The minimum compiler version for building CRDB is now go
1.12.
@andreimatei andreimatei requested review from a team June 24, 2019 23:12
Copy link
Contributor Author

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

Took over #38384 here.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @petermattis and @RaduBerinde)


build/teamcity-assert-clean.sh, line 13 at r1 (raw file):

Previously, RaduBerinde wrote…

Oh.. I didn't notice it just runs git. Weird.

There is another invocation here:

# NB: Using golang:1.11.5-stretch instead of golang:stretch because of #35637.

For that one my question stands. I think we should fix that to 1.12 or things might break when 1.13 gets released.

yup, fixed that one. Thanks.

Copy link
Contributor Author

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

bors r+

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @petermattis and @RaduBerinde)

Copy link
Contributor Author

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

bors please

bors+

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @petermattis and @RaduBerinde)

Copy link
Contributor Author

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

bors r+

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @petermattis and @RaduBerinde)

craig bot pushed a commit that referenced this pull request Jun 26, 2019
38379: build: require go1.12 r=andreimatei a=andreimatei

Since the builder was upgraded a while ago and we already have code
needing 1.12.

Release note: The minimum compiler version for building CRDB is now go
1.12.

Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Jun 26, 2019

Build succeeded

@craig craig bot merged commit a8b7483 into cockroachdb:master Jun 26, 2019
@andreimatei andreimatei deleted the small.go-112 branch July 1, 2019 18:29
craig bot pushed a commit that referenced this pull request Jul 10, 2019
38805: build: update to go 1.12.7 in bootstrap-debian.sh r=rafiss a=rafiss

The minimum compiler version for building CRDB is now go 1.12, so when
creating a new worker, we need this version.

See #38379

Release note: None

Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants