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

Moved imports to v2; Moved to Go 1.14.2 #290

Merged
merged 1 commit into from
May 1, 2020
Merged

Moved imports to v2; Moved to Go 1.14.2 #290

merged 1 commit into from
May 1, 2020

Conversation

bwplotka
Copy link
Collaborator

@bwplotka bwplotka commented May 1, 2020

Following https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher we need this. It might be still non-buildable.

Signed-off-by: Bartlomiej Plotka bwplotka@gmail.com

go.mod Outdated
@@ -11,4 +11,4 @@ require (
google.golang.org/grpc v1.19.0
)

go 1.13
go 1.14
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: can we move this above the require statement?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"

pb_testproto "github.com/grpc-ecosystem/go-grpc-middleware/grpctesting/testproto"
pb_testproto "github.com/grpc-ecosystem/go-grpc-middleware/v2/grpctesting/testproto"
Copy link
Collaborator

Choose a reason for hiding this comment

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

What import grouping do we want to use? This is a little inconsistent. I usually do 3 import groups. Maybe now is a good time to change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

so I use goimports which does 2 groups. What do you prefer? I am fine with whatever as long as there is popular auto formatting tool for this (:

Comment on lines +14 to +17
"github.com/grpc-ecosystem/go-grpc-middleware/v2/grpctesting"
"google.golang.org/grpc/status"

pb_testproto "github.com/grpc-ecosystem/go-grpc-middleware/grpctesting/testproto"
pb_testproto "github.com/grpc-ecosystem/go-grpc-middleware/v2/grpctesting/testproto"
Copy link
Collaborator

Choose a reason for hiding this comment

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

😱

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yea not formatted well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will fix in later PR

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
@codecov-io
Copy link

codecov-io commented May 1, 2020

Codecov Report

Merging #290 into v2 will decrease coverage by 0.42%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##               v2     #290      +/-   ##
==========================================
- Coverage   84.01%   83.58%   -0.43%     
==========================================
  Files          30       30              
  Lines         932      932              
==========================================
- Hits          783      779       -4     
- Misses        110      114       +4     
  Partials       39       39              
Impacted Files Coverage Δ
auth/auth.go 100.00% <ø> (ø)
auth/metadata.go 100.00% <ø> (ø)
interceptors/logging/interceptors.go 100.00% <ø> (ø)
interceptors/logging/logging.go 67.74% <ø> (ø)
interceptors/logging/payload.go 82.60% <ø> (ø)
interceptors/retry/backoff.go 50.00% <ø> (ø)
interceptors/retry/retry.go 76.24% <ø> (-2.21%) ⬇️
interceptors/tags/interceptors.go 95.65% <ø> (ø)
interceptors/tracing/client.go 89.47% <ø> (ø)
interceptors/tracing/id_extract.go 85.18% <ø> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb2c8a6...32306f8. Read the comment docs.

@bwplotka
Copy link
Collaborator Author

bwplotka commented May 1, 2020

Ok I moved to Go v2 , but let's fix formatting later, go list does not work without tag now

@bwplotka bwplotka merged commit 818c8cf into v2 May 1, 2020
@bwplotka bwplotka deleted the import-comp branch May 1, 2020 10:52
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

3 participants