-
Notifications
You must be signed in to change notification settings - Fork 59
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
tagvalue parser incorrectly complains about DocumentComment #182
Comments
@lumjjb I do not see tvloader package in main. It was their in the release v0.4.0, but now it is gone, how do you want to handle this? |
@neilnaveen I'm happy if you just fix what's in main. package main
import (
"bytes"
"fmt"
"io/ioutil"
spdx_tv "github.com/spdx/tools-golang/tagvalue"
)
func main() {
f, err := ioutil.ReadFile("/Users/jabrahms/Downloads/photon.spdxtv.txt")
if err != nil {
print("error opening SPDX document: %w", err)
return
}
doc22, err := spdx_tv.Read(bytes.NewReader(f))
if err == nil && doc22 != nil {
print("Found 2.2 tv document")
} else {
fmt.Println("Error: ", err)
}
} and
|
Not in your code, but the main branch of spdx. |
@neilnaveen Totally. I (I think...?) updated the code to reflect the test case with what's in main. |
@justinabrahms does the PR #185 from @neilnaveen fix this for you? |
@lumjjb It does;
|
awesome closing this issue. Thanks @neilnaveen @justinabrahms |
Hello.
When parsing a tagvalue file, I incorrectly get the error
received unknown tag DocumentComment in CreationInfo section
. I've ensured the file passes validation at https://tools.spdx.org/app/validate/.File listed here: eBay/sbom-scorecard#22 (comment)
Test case:
The text was updated successfully, but these errors were encountered: