Skip to content
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

Bump base version of go to 1.13 #112

Merged
merged 1 commit into from Jun 14, 2021
Merged

Conversation

zyga
Copy link
Contributor

@zyga zyga commented Jan 12, 2021

There are two main reasons:

Go 1.10 fails to go get dependencies of spread as they have introduced build
flags unrecognized by 1.10, which causes spurious duplicate symbol errors. An
example can be seen on the test logs from
#111

The command "eval go get -v -t ./... " failed.
# golang.org/x/term
../../../golang.org/x/term/term_unix_linux.go:9:26: ioctlReadTermios redeclared in this block
previous declaration at ../../../golang.org/x/term/term_unix_aix.go:9:26
../../../golang.org/x/term/term_unix_linux.go:10:27: ioctlWriteTermios redeclared in this block
previous declaration at ../../../golang.org/x/term/term_unix_aix.go:10:2

This makes CI broken, this was not noticed simply because of low rate of
activity on the project.

The second reason is to get improved go vet, as certain issues have gone
unnoticed simply because the tooling was older.

I chose to bump the base version to Go 1.13 as it is used in Ubuntu 20.04 and
represents a reasonable upgrade.

Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@huawei.com

@zyga
Copy link
Contributor Author

zyga commented Jan 13, 2021

Ah, I see there are more places that pull in go 10.x, I'll adjust those later today.

There are two main reasons:

Go 1.10 fails to `go get` dependencies of spread as they have introduced build
flags unrecognized by 1.10, which causes spurious duplicate symbol errors. An
example can be seen on the test logs from
snapcore#111

    The command "eval go get -v -t ./... " failed.
    # golang.org/x/term
    ../../../golang.org/x/term/term_unix_linux.go:9:26: ioctlReadTermios redeclared in this block
	previous declaration at ../../../golang.org/x/term/term_unix_aix.go:9:26
    ../../../golang.org/x/term/term_unix_linux.go:10:27: ioctlWriteTermios redeclared in this block
	previous declaration at ../../../golang.org/x/term/term_unix_aix.go:10:2

This makes CI broken, this was not noticed simply because of low rate of
activity on the project.

The second reason is to get improved `go vet`, as certain issues have gone
unnoticed simply because the tooling was older.

I chose to bump the base version to Go 1.13 as it is used in Ubuntu 20.04 and
represents a reasonable upgrade.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Copy link
Contributor

@sergiocazzolato sergiocazzolato left a comment

Choose a reason for hiding this comment

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

Thanks

@zyga
Copy link
Contributor Author

zyga commented Feb 22, 2021

@niemeyer could you please merge this, it will help fix the CI loop.

Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

This looks fine to me, thanks for this update

@mvo5 mvo5 added the Ready label Jun 1, 2021
@zyga
Copy link
Contributor Author

zyga commented Jun 8, 2021

@niemeyer please have a look, this will unlock other fixes that cannot pass CI currently.

@mvo5
Copy link
Contributor

mvo5 commented Jun 9, 2021

@zyga I will talk about this PR on Monday with Gustavo. I asked him to schedule time to look over the "ready" labeled PRs with me.

@mvo5 mvo5 merged commit 21f0aa0 into snapcore:master Jun 14, 2021
@zyga zyga deleted the fix/upgrade-go branch June 14, 2021 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants