Skip to content

Feat force option for oppossum file #182

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

Merged
merged 14 commits into from
Jan 16, 2025
Merged

Conversation

Hellgartner
Copy link
Contributor

  • Currently, when processing an .opossum file which contains an output.json subfile the conversion aborts and exits
  • From
    opossum file parsing #49 there is the desire to add a --force or similar option to just ignore the output.json file in this case
  • This PR implements this option
  • Closes Force option for opossum files #177

@Hellgartner Hellgartner force-pushed the feat-force-option-for-oppossum-file branch from 5073ac6 to b300414 Compare January 15, 2025 07:40
@mstykow
Copy link
Member

mstykow commented Jan 15, 2025

tbh, i don't really see the value of this option. what's the problem with silently dropping the output file?

@abraemer
Copy link
Contributor

abraemer commented Jan 15, 2025

I think having the error is more defensive. Someone might think that the conversion of opossum -> opossum should be essentially a no-op and that is partially true. It is wrong when there is a output.json because that information just gets destroyed.
I don't have a strong opinion on this though. We could also make it the default and maybe give a warning/info type of message.

@Hellgartner Hellgartner force-pushed the feat-force-option-for-oppossum-file branch from b300414 to b4e3eb1 Compare January 15, 2025 12:59
@Hellgartner
Copy link
Contributor Author

After discussion with @mstykow and @abraemer we dedcided to just support moving output files over.
This was successively implemented here

* Reason for ignoring typing
   * Creating the invalid structure is temporary
   * It is explicitly revalidated afterward
* For testing, explicitly invalid structures are created
@abraemer abraemer merged commit d9288b1 into main Jan 16, 2025
10 checks passed
@abraemer abraemer deleted the feat-force-option-for-oppossum-file branch January 16, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Force option for opossum files
3 participants