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

Rename license file to satisfy go docs for nested modules #1389

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

lrewega
Copy link
Contributor

@lrewega lrewega commented Nov 27, 2023

The documentation for module uber.go/zap/exp is not eligible to be rendered on pkg.go.dev as no license is detected. For example, https://pkg.go.dev/go.uber.org/zap/exp@v0.2.0/zapslog will not render.

This is due to some possibly unfortunate behavior in the Go command that special cases copying a LICENSE file from the repository for root for any nested modules lacking a LICENSE file. This is problematic for Zap as Zap's license is in a file named LICENSE.txt. Renaming the license file to LICENSE remedies the issue.

Relevant issues:

The documentation for module `uber.go/zap/exp` is not eligible to be
rendered on pkg.go.dev as no license is detected. For example,
https://pkg.go.dev/go.uber.org/zap/exp@v0.2.0/zapslog will not render.

This is due to some possibly unfortunate behavior in the Go command that
special cases copying a `LICENSE` file from the repository for root for
any nested modules lacking a `LICENSE` file. This is problematic for Zap
as Zap's license is in a file named `LICENSE.txt`. Renaming the license
file to `LICENSE` remedies the issue.

Relevant issues:
- golang/go#43817 (comment)
- golang/go#44758 (comment)
@CLAassistant
Copy link

CLAassistant commented Nov 27, 2023

CLA assistant check
All committers have signed the CLA.

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fa1b6ae) 98.42% compared to head (b006e20) 98.42%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1389   +/-   ##
=======================================
  Coverage   98.42%   98.42%           
=======================================
  Files          53       53           
  Lines        3495     3495           
=======================================
  Hits         3440     3440           
  Misses         46       46           
  Partials        9        9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@r-hang r-hang merged commit 5acd569 into uber-go:master Nov 27, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants