Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Update code to handle lint issues after golangci-lint update to v1.6.0 #528

Merged
merged 3 commits into from
Apr 9, 2019

Conversation

teawater
Copy link
Member

@teawater teawater commented Apr 9, 2019

Update go version because golangci-lint v1.16.0 cannot work OK with go 1.10.

Fixes: #527

Signed-off-by: Hui Zhu teawater@hyper.sh

Update go version because golangci-lint v1.16.0 cannot work OK with go 1.10.

Fixes: kata-containers#527

Signed-off-by: Hui Zhu <teawater@hyper.sh>
@teawater
Copy link
Member Author

teawater commented Apr 9, 2019

To fix lint issues in #526

@teawater teawater changed the title ci: Update travis go version from 1.10 to 1.11 Update code to handle lint issues after golangci-lint update to v1.6.0 Apr 9, 2019
Update code to handle lint issues after golangci-lint update to v1.6.0.

Fixes: kata-containers#527

Signed-off-by: Hui Zhu <teawater@hyper.sh>
@teawater
Copy link
Member Author

teawater commented Apr 9, 2019

/test

@grahamwhaley
Copy link
Contributor

Travis still failing, but that is due to the same golang binary issue as kata-containers/runtime#1506 I think?
I suspect we should roll the trusty->xenial travis change into this PR as well. wdyt @chavafg

# github.com/kata-containers/agent.test
/home/travis/.gimme/versions/go1.11.8.linux.amd64/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-859365834/000008.o: unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

Using xenial to handle the issue that using trusty in travis and go 1.11.7.

Fixes: kata-containers#527

Signed-off-by: Hui Zhu <teawater@hyper.sh>
@teawater
Copy link
Member Author

teawater commented Apr 9, 2019

/test

@teawater
Copy link
Member Author

teawater commented Apr 9, 2019

Travis still failing, but that is due to the same golang binary issue as kata-containers/runtime#1506 I think?
I suspect we should roll the trusty->xenial travis change into this PR as well. wdyt @chavafg

# github.com/kata-containers/agent.test
/home/travis/.gimme/versions/go1.11.8.linux.amd64/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-859365834/000008.o: unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

Done.

Copy link
Member

@bergwolf bergwolf left a comment

Choose a reason for hiding this comment

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

Glad to see that continuous-integration/travis-ci/pr is passing!

@grahamwhaley grahamwhaley requested a review from chavafg April 9, 2019 12:11
Copy link
Contributor

@grahamwhaley grahamwhaley left a comment

Choose a reason for hiding this comment

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

l g t m
but I'd like to hear from @chavafg if we can before we land it.

@chavafg chavafg merged commit 801d792 into kata-containers:master Apr 9, 2019
ganeshmaharaj pushed a commit to ganeshmaharaj/agent that referenced this pull request Apr 16, 2019
Update code to handle lint issues after golangci-lint update to v1.6.0
(cherry picked from commit 801d792)

Fixes: kata-containers#527

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
katacontainersbot pushed a commit to katacontainersbot/agent that referenced this pull request Apr 17, 2019
- backport: 1.6.2 backport patches

ccc8b26 lint: Merge pull request kata-containers#491 from ganeshmaharaj/go-linter-change
200d8e4 golang: Merge pull request kata-containers#528 from teawater/lint
d1ace1b license: Merge pull request kata-containers#532 from jcvenegas/stable-1.5-fix-travis
0dbf85d agent: Merge pull request kata-containers#526 from lifupan/stopfix

Signed-off-by: katacontainers bot <katacontainersbot@katacontainers.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants