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

License / Copyright of localtime.go #553

Closed
lhinderberger opened this issue Jun 5, 2021 · 4 comments
Closed

License / Copyright of localtime.go #553

lhinderberger opened this issue Jun 5, 2021 · 4 comments
Labels
bug Issues describing a bug in go-toml.

Comments

@lhinderberger
Copy link

Hello go-toml maintainers,

I want to bring your attention to an issue about the licensing of go-toml.
While browsing go-toml's sourcecode, I noticed that the file "localtime.go" has a copyright statement claiming the code in the file was covered by the Apache License v2.0.

I think it would be good if this was mentioned in the README or the LICENSE file (preferably both), because the Apache License v2.0 has stricter conditions for redistribution than the MIT license (see Article 4 of the license). At the moment, one could get the impression that the entirety of go-toml is covered by the MIT license, when in fact is has Apache-licensed parts.

Also, the Apache License v2.0 states "You must cause any modified files to carry prominent notices stating that You changed the files". It appears you have made changes to "localtime.go" since copying it from the other repository - I'm not sure if the "Copied over" notice at the top of "localtime.go" is enough to satisfy that condition.

The same applies to "localtime_test.go".

This is currently keeping me from adopting go-toml in one of my projects.
Please consider adressing these issues.

Thank you and kind regards
Lucas Hinderberger

@pelletier
Copy link
Owner

Thank you for bringing this up! Never noticed the issue.

Here is an attempt at rectifying the situation for go-toml v1: #554. Would this work?
For go-toml v2, I am first going to see if it's possible to not include those files at all. If not, I'll apply a similar change.

@pelletier pelletier added the bug Issues describing a bug in go-toml. label Jun 5, 2021
@lhinderberger
Copy link
Author

Thank you for your quick reply!
I have had a look at the linked PR and to me it looks good (but please mind that I'm a software engineer, not a lawyer).
Not including those files in v2 if possible seems like a good idea too 👍

@pelletier
Copy link
Owner

Cool. Don't have a lawyer around to check. This seems like a reasonable attempt to fix this issue. I merged the license change for v1, and will be working on v2 next.

@pelletier
Copy link
Owner

I have rewritten the implementation of Local* types without using the original code from Google (#558).

Closing this issue as I feel like it has been addressed. Let me know otherwise! Thank you again for flagging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues describing a bug in go-toml.
Projects
None yet
Development

No branches or pull requests

2 participants