Code Monkey home page Code Monkey logo

Comments (6)

tdrozdovsky avatar tdrozdovsky commented on July 1, 2024 1

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

parser.add_argument(
"--report", type=str, help="Type of report to generate. Default 'TEXT'.",
choices=[member.name for member in ReportFormat], default=ReportFormat.TEXT
)

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.

Thanks, these changes fixed the error. now everything works well!

from fossology.

pranjul1203 avatar pranjul1203 commented on July 1, 2024

By adding -e GITHUB_ACTIONS=true in the check-copyright job, you ensure that the GITHUB_ACTIONS environment variable is correctly set

from fossology.

tdrozdovsky avatar tdrozdovsky commented on July 1, 2024

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.

GMishx avatar GMishx commented on July 1, 2024

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

parser.add_argument(
"--report", type=str, help="Type of report to generate. Default 'TEXT'.",
choices=[member.name for member in ReportFormat], default=ReportFormat.TEXT
)

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.

dvjsharma avatar dvjsharma commented on July 1, 2024

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

parser.add_argument(
"--report", type=str, help="Type of report to generate. Default 'TEXT'.",
choices=[member.name for member in ReportFormat], default=ReportFormat.TEXT
)

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.

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.

GMishx avatar GMishx commented on July 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.