Comments (6)
There is a new parameter now
--report
to accept different report formats (TEXT
,SPDX_JSON
,SPDX_RDF
,SPDX_TAG_VALUE
,SPDX_YAML
). The default value for it isTEXT
. However, there is some programming issue bellowfossology/utils/automation/fossologyscanner.py
Lines 268 to 271 in 7ba0bc4
Till it is fixed in code, as a hotfix/workaround, you can add the parameter
--report TEXT
(or any other format) likefossology/fossology:scanner "/bin/fossologyscanner" --report TEXT copyright keyword
in the GitHub workflow file.
Thanks, these changes fixed the error. now everything works well!
from fossology.
By adding -e GITHUB_ACTIONS=true in the check-copyright job, you ensure that the GITHUB_ACTIONS environment variable is correctly set
from fossology.
By adding -e GITHUB_ACTIONS=true in the check-copyright job, you ensure that the GITHUB_ACTIONS environment variable is correctly set
Thanks for the suggestion. I tried this before and it doesn't work
from fossology.
There is a new parameter now --report
to accept different report formats (TEXT
, SPDX_JSON
, SPDX_RDF
, SPDX_TAG_VALUE
, SPDX_YAML
). The default value for it is TEXT
. However, there is some programming issue bellow
fossology/utils/automation/fossologyscanner.py
Lines 268 to 271 in 7ba0bc4
Till it is fixed in code, as a hotfix/workaround, you can add the parameter --report TEXT
(or any other format) like fossology/fossology:scanner "/bin/fossologyscanner" --report TEXT copyright keyword
in the GitHub workflow file.
from fossology.
There is a new parameter now
--report
to accept different report formats (TEXT
,SPDX_JSON
,SPDX_RDF
,SPDX_TAG_VALUE
,SPDX_YAML
). The default value for it isTEXT
. However, there is some programming issue bellowfossology/utils/automation/fossologyscanner.py
Lines 268 to 271 in 7ba0bc4
Till it is fixed in code, as a hotfix/workaround, you can add the parameter
--report TEXT
(or any other format) likefossology/fossology:scanner "/bin/fossologyscanner" --report TEXT copyright keyword
in the GitHub workflow file.
Hi @GMishx, I believe this can be improved. The default parameter sets the default value for the --report
argument and it uses ReportFormat.TEXT
, which is an enum member. However, when the user provides a value, it might be a string, not an enum member. Using ReportFormat.TEXT.name
as the default value explicitly sets the default value as string "TEXT". This might fix the programming error you quoted. If you are good with the solution i'll open up a pull request. Please take a look.
from fossology.
Using
ReportFormat.TEXT.name
as the default value explicitly sets the default value as string "TEXT".
Sounds great @dvjsharma, please go ahead.
from fossology.
Related Issues (20)
- SPDX Report generation for files with candidate license failed
- "Require uploadType" error with API v1 HOT 4
- Upgrade the User & Group APIs to Version 2 HOT 1
- Upgrade the Folder & License APIs to Version 2 HOT 2
- Alert mechanism via API
- Call to a member function getId() on null in lib/php/Report/ReportUtils.php HOT 3
- As a User I would like to filter out files by extension on the search box. HOT 2
- The database upgrade failed from version 9.6 to a higher version
- Upgrade the Jobs & Report based APIs to Version 2 HOT 1
- cp2foss does not work from 4.3.0-rc1
- [API ERROR] calling Upload api throws 405 NOT ALLOWED HOT 2
- DB upgrade from < 4.3 to >= 4.3: Possible loss of edited results or main license
- Docker image build failed while upgrading from bullseye to bookworm
- Search functionality for Software Heritage Page and search and filter functionality of file browser page is not working
- scancode fails HOT 3
- "Skip MimeTypes from scanning" Feature is Not Working HOT 2
- spdx2tv report generation failed with PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /usr/local/share/fossology/spdx2/agent/spdx2.php:358
- Add more unit test cases for upload, group, license and folder APIs.
- Add more unit test cases for maintenance & upload tree APIs
- Failed to build Fossology docker image HOT 18
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 fossology.