Comments (4)
Thanks, @vargenau, for the bug report. We'll investigate!
from ntia-conformance-checker.
The --file
argument was required. Oops. PR #151 fixes this. Thank you again, @vargenau, for reporting this bug.
from ntia-conformance-checker.
Hello @jspeed-meyers
This fixes the issue, but creates another one.
You should test the presence of the --file
argument if another argument is present.
If I do
ntia-checker --verbose
I now have:
Traceback (most recent call last):
File "/opt/homebrew/bin/ntia-checker", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/ntia_conformance_checker/main.py", line 58, in main
sbom = SbomChecker(args.file, validate=not args.skip_validation)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/ntia_conformance_checker/sbom_checker.py", line 22, in __init__
self.doc = self.parse_file()
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/ntia_conformance_checker/sbom_checker.py", line 47, in parse_file
if not os.path.exists(self.file):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen genericpath>", line 19, in exists
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Same with just
ntia-checker
from ntia-conformance-checker.
@vargenau, does PR #154 accomplish what you expect?
from ntia-conformance-checker.
Related Issues (20)
- ntia-checker fails for files under fileName must not be an absolute path HOT 5
- Bug: test the presence of the --file argument if another argument is present HOT 1
- Syntax of the short arguments HOT 3
- Package supplier and originator fields, is having both as NOASSERTION is not EO compliant? HOT 10
- Cut a v1.0.0 Release? HOT 1
- Move Python Support From 3.8 to 3.9
- licenseId is not a case-sensitive as per spdx ,but this tool follows case-sensitve? HOT 13
- get_components_without_* functions shold return the SPDX ID of the component if there is one HOT 9
- Add Black and Pylint to Contributing Doc
- Getting confused about tri licensed package HOT 6
- Spelling: Minimum vs mininum HOT 10
- What GitHub Badges (or Practices) Do You Want This Repo to Have? HOT 1
- [Docs] Add Documentation on Pre-Built Container Applications of `ntia-conformance-checker` HOT 1
- `check_dependency_relationships` Function Does Not Match SPDX Minimum Elements Definition of "Relationship" Field HOT 1
- Should .idea Folder and Contents Be Deleted?
- Cut v2.0.0 Release
- Cut New Release - v2.0.0 HOT 3
- check_dependency_relationships test does not seem correct HOT 17
- Add a OpenSSF Scorecard GitHub Badge to Repo README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntia-conformance-checker.