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

Adding the Hashicorp variant of the Business Source License 1.1 #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ringods
Copy link

@ringods ringods commented Mar 11, 2025

Fixes: #67

Hashicorp relicensed their product offering to the Business Source License 1.1

https://github.com/search?q=org%3Ahashicorp+%22Business+Source+License+1.1%22+language%3AText&type=code&l=Text

The LICENSE files installed in the repositories have a Hashicorp specific preamble, for instance:\

https://github.com/hashicorp/terraform/blob/ec0ecca1a6eef4bd90138de064b9e54b668622ac/LICENSE#L4-L47

I added a variant to the Business Source License assets folder matching the Hashicorp style LICENSE files starting from line 51.

https://github.com/hashicorp/terraform/blob/ec0ecca1a6eef4bd90138de064b9e54b668622ac/LICENSE#L4-L47

With this variant in place, the licenses are properly matched:

$ cd v2
$ wget https://raw.githubusercontent.com/hashicorp/terraform/refs/heads/main/LICENSE -O LICENSE-tf.txt
$ go run tools/identify_license/identify_license.go LICENSE-tf.txt
2025/03/11 12:46:39 Classifying license(s): /Users/ringods/Projects/pulumi/licenseclassifier/v2/LICENSE-tf.txt
2025/03/11 12:46:39 Finished Classifying License "/Users/ringods/Projects/pulumi/licenseclassifier/v2/LICENSE-tf.txt": 4.395ms
/Users/ringods/Projects/pulumi/licenseclassifier/v2/LICENSE-tf.txt Business-Source-License-1.1 (variant: hashicorp.txt, confidence: 1, start: 51, end: 92)
$ wget https://raw.githubusercontent.com/hashicorp/vault/refs/heads/main/LICENSE -O LICENSE-vault.txt
$ go run tools/identify_license/identify_license.go LICENSE-vault.txt
2025/03/11 12:47:36 Classifying license(s): /Users/ringods/Projects/pulumi/licenseclassifier/v2/LICENSE-vault.txt
2025/03/11 12:47:36 Finished Classifying License "/Users/ringods/Projects/pulumi/licenseclassifier/v2/LICENSE-vault.txt": 4.367292ms
/Users/ringods/Projects/pulumi/licenseclassifier/v2/LICENSE-vault.txt Business-Source-License-1.1 (variant: hashicorp.txt, confidence: 1, start: 51, end: 92)

How can I add & run tests from v2/scenarios?

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.

License file from Terraform not identified as "Business Source License 1.1"
1 participant