-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Assert now takes into consideration the license. #7855
Conversation
- License headers for both Elastic and ASL2 are now accessible by code using the licenses package. ``` licenses.Elastic licenses.ASL2 ``` - Added a generator to take care of syncing the files in the licenses/ directory. - Added `LICENSE` as a variable for the makefile to configure the go-licenser this is useful if a beat as a different license.
) | ||
|
||
var Template = template.Must(template.New("licenseheader").Parse(` | ||
{{ $t := "` + "`" + `" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't found a better way to embed ticks in ticks :(
@@ -0,0 +1,58 @@ | |||
// Licensed to Elasticsearch B.V. under one or more contributor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for multiple licenses.. ;)
@ruflin can you take a look at this? |
|
||
content, err = ioutil.ReadFile("ELASTIC-LICENSE-header.txt") | ||
if err != nil { | ||
panic("could not read Elastic license.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason you use panic
instead of os.Exit(1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no specific I could have use println + os.Exit(1)
- License headers for both Elastic and ASL2 are now accessible by code using the licenses package. ``` licenses.Elastic licenses.ASL2 ``` - Added a generator to take care of syncing the files in the licenses/ directory. - Added `LICENSE` as a variable for the makefile to configure the go-licenser this is useful if a beat as a different license. (cherry picked from commit 437a62a)
- License headers for both Elastic and ASL2 are now accessible by code using the licenses package. ``` licenses.Elastic licenses.ASL2 ``` - Added a generator to take care of syncing the files in the licenses/ directory. - Added `LICENSE` as a variable for the makefile to configure the go-licenser this is useful if a beat as a different license. (cherry picked from commit 437a62a)
code using the licenses package.
directory.
LICENSE
as a variable for the makefile to configure thego-licenser this is useful if a beat as a different license.