Adding the Hashicorp variant of the Business Source License 1.1
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?