Put a linter check to build pipeline #127

Closed
opened 2020-08-05 12:09:52 +00:00 by cenkalti · 8 comments
Contributor

I recommend golangci-lint.

I recommend [golangci-lint](https://github.com/golangci/golangci-lint/).
Owner

Could you send a PR?

Could you send a PR?
Author
Contributor

@lunny I think there is a problem with the drone CI setup. Network requests fail with an error. I couldn't be able to download golangci-lint tool and dependent modules from the container. I have tried with several images and both curl and wget. Can you check what'w wrong please?

Example with ubuntu and curl: https://drone.gitea.com/goftp/server/145/1/3

After some search I have found this issue: https://github.com/moby/moby/issues/2011#issuecomment-252250588 Maybe it is relevant.

@lunny I think there is a problem with the drone CI setup. Network requests fail with an error. I couldn't be able to download `golangci-lint` tool and dependent modules from the container. I have tried with several images and both curl and wget. Can you check what'w wrong please? Example with ubuntu and curl: https://drone.gitea.com/goftp/server/145/1/3 After some search I have found this issue: https://github.com/moby/moby/issues/2011#issuecomment-252250588 Maybe it is relevant.
Owner

We could use go get to download the sources and compile it.

We could use `go get` to download the sources and compile it.
Author
Contributor

It also does not work. That's why I think there is a problem with networking in container. See: https://drone.gitea.com/goftp/server/146/1/3

It also does not work. That's why I think there is a problem with networking in container. See: https://drone.gitea.com/goftp/server/146/1/3
Owner

You have to use the go module proxy https://goproxy.cn

You have to use the go module proxy `https://goproxy.cn`
Author
Contributor

Why?

Why?
Owner

Because the servers of gitea.com is in China which blocked the google's services.

Because the servers of gitea.com is in China which blocked the google's services.
Author
Contributor

It is working with goproxy.cn now. Can you merge please? I'll send another PR addressing the linter issues.

It is working with goproxy.cn now. Can you merge please? I'll send another PR addressing the linter issues.
lunny closed this issue 2020-08-12 07:20:00 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: goftp/server#127
No description provided.