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

Make gofmt fail builds #93

Merged
merged 3 commits into from
Sep 14, 2017
Merged

Make gofmt fail builds #93

merged 3 commits into from
Sep 14, 2017

Conversation

itscaro
Copy link
Contributor

@itscaro itscaro commented Sep 12, 2017

Description

  • gofmt to break local and CI builds

Motivation and Context

How Has This Been Tested?

Types of changes

Build changes

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@alexellis
Copy link
Member

Hi @itscaro,

This is an interesting idea, thanks for looking into it. We're still using Golang 1.8 across the board until our main dependencies also move to Golang 1.9. I.e. Docker and Kubernetes. The reason the pull request template requires everyone to raise a proposal for significant changes is so that folks don't end up working on things which we can't include yet.

I'd be happy to take the change for gofmt if you can re-push it in a generic way - i.e. run it via the build_redist.sh file?

@itscaro
Copy link
Contributor Author

itscaro commented Sep 12, 2017

Since the go in travis is only used to do go get that why I bump it up directly from 1.7 to 1.9

I moved the gofmt verification into build.sh and build_redist.sh

@itscaro
Copy link
Contributor Author

itscaro commented Sep 12, 2017

@alexellis should we use Makefile?

itscaro@74f8178

@alexellis
Copy link
Member

So let's start at the beginning again.

Can you add your "exit 1" code to these files?

https://github.com/alexellis/faas-cli/blob/master/Dockerfile#L7

https://github.com/alexellis/faas-cli/blob/master/Dockerfile.redist

@alexellis alexellis changed the title Use go 1.9 in travis. Add gofmt check in CI Make gofmt fail builds Sep 13, 2017
@openfaas openfaas deleted a comment Sep 13, 2017
@itscaro
Copy link
Contributor Author

itscaro commented Sep 13, 2017

@alexellis is it ok like this?

…_hmac/handler.go

Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
Fix syntax for stack/stack.go and stack/stack_test.go

Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
@ghost
Copy link

ghost commented Sep 13, 2017

Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off.
That's something we need before your Pull Request can be merged. Please see our contributing guide.

Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
@alexellis
Copy link
Member

Merging! Thank you @itscaro for your patience on this one. We really value your input on the project, keep it up.

@alexellis alexellis merged commit 86370e8 into openfaas:master Sep 14, 2017
@itscaro itscaro deleted the ci branch September 14, 2017 07:42
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.

None yet

2 participants