Add option to convert between SPDX Spec versions

Open
#146 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
cli

Research direction

Start at the SPDX translator's command-line option handling and review how a new document version is passed to the underlying library. Decide between the proposed comment and --version approaches, then verify that an upgrade produces the requested SPDX version while respecting the library's lack of downgrade support.

Written by the indexing model from the issue text.

Description

enhancement

The underlying library supports converting between versions if you specify the version when creating the new SPDX document.

Unfortunately, there is no command line option to support this.

There are a couple possibilities:

  • Add a new comment like "upgradeSpdxDocument" which will take the new version as a noption
  • Add a --version option to the SPDX translator which will use the new version for the translated file

Note that the library only support upgrades, not downgrades.

Dominant language
Java
Stars
101
Forks
46
Avg merge
9h 43m
Merged PRs (30d)
8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spdx/tools-java

All issues in spdx/tools-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.