Navigation Menu

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

Update Bazel build to work with 4.0.0 #428

Merged
merged 2 commits into from Sep 12, 2021
Merged

Update Bazel build to work with 4.0.0 #428

merged 2 commits into from Sep 12, 2021

Conversation

tanyabouman
Copy link
Contributor

This includes several updates to the BUILD and WORKSPACE files, so that they now work with Bazel 4.0.0, Gazelle 0.23 and rules_go 0.27.

By default, Gazelle now uses the last component of the Bazel package, rather than go_default_library as the go_library name.

This causes problems when the naming conventions do not match.
bazelbuild/bazel-gazelle#890 (comment)

Adding support for the new naming convention should not break anything that depends on using the old naming convention, because the Gazelle option import_alias makes aliases to the libraries and this allows the old naming convention to still work.

This includes several updates to the BUILD and WORKSPACE files, so that they now work with Bazel 4.0.0, Gazelle 0.23 and rules_go 0.27.

By default, [Gazelle now uses](bazelbuild/bazel-gazelle#863) the last component of the Bazel package, rather than `go_default_library` as the `go_library name`.

This causes problems when the naming conventions do not match.
bazelbuild/bazel-gazelle#890 (comment)

Adding support for the new naming convention should not break anything that depends on using the old naming convention, because the Gazelle option `import_alias` makes aliases to the libraries and this allows the old naming convention to still work.
@jeevatkm
Copy link
Member

jeevatkm commented Sep 12, 2021

@tanyabouman Thank you for your PR appreciated, I'm sorry for the delayed response.

Travis CI build link was broken. I have migrated travis-ci.org to travis-ci.com

Can you please edit the PR to trigger the CI build?

@codecov
Copy link

codecov bot commented Sep 12, 2021

Codecov Report

Merging #428 (dfe8eda) into master (70336cb) will increase coverage by 0.79%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #428      +/-   ##
==========================================
+ Coverage   96.06%   96.85%   +0.79%     
==========================================
  Files          10       10              
  Lines        1041     1304     +263     
==========================================
+ Hits         1000     1263     +263     
  Misses         23       23              
  Partials       18       18              
Impacted Files Coverage Δ
resty.go 100.00% <0.00%> (ø)
retry.go 100.00% <0.00%> (ø)
trace.go 100.00% <0.00%> (ø)
request.go 100.00% <0.00%> (ø)
response.go 100.00% <0.00%> (ø)
transport.go 100.00% <0.00%> (ø)
client.go 97.59% <0.00%> (+0.73%) ⬆️
middleware.go 92.52% <0.00%> (+1.02%) ⬆️
util.go 93.93% <0.00%> (+2.00%) ⬆️
redirect.go 94.11% <0.00%> (+2.11%) ⬆️

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 70336cb...dfe8eda. Read the comment docs.

Copy link
Member

@jeevatkm jeevatkm left a comment

Choose a reason for hiding this comment

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

@tanyabouman Thank you for your PR and contribution.

@jeevatkm jeevatkm merged commit d717652 into go-resty:master Sep 12, 2021
@jeevatkm jeevatkm added this to the v2.7.0 Milestone milestone Sep 12, 2021
@tanyabouman tanyabouman deleted the update-bazel-build branch September 14, 2021 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants