Skip to content
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

skip digest for component constructors #1070

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

mandelsoft
Copy link
Contributor

What this PR does / why we need it

This PR adds the option --skip-digest-generation to the ocm add components command.
It generally disables the digest generation for all added resources.
Additionally, the resource description may set skipDigestGeneration to true to disable the digest
generation for this particular resource.

Which issue(s) this PR fixes

Fixes open-component-model/ocm-project#322

@mandelsoft mandelsoft requested a review from a team as a code owner November 11, 2024 10:47
@mandelsoft mandelsoft force-pushed the resources branch 2 times, most recently from a8b1fd8 to 94f9c7a Compare November 11, 2024 11:14
Copy link
Contributor

@jakobmoellerdev jakobmoellerdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, LGTM but looks like another fix slipped into this one regarding the default scheme handling.

docs/reference/ocm_add_componentversions.md Show resolved Hide resolved
@jakobmoellerdev jakobmoellerdev merged commit a509b0f into open-component-model:main Nov 11, 2024
20 checks passed
jakobmoellerdev pushed a commit that referenced this pull request Nov 11, 2024
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it
complete #1070

Move handler-local options correctly to the comp handler and adapt the
using code to reflect this change.

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
jakobmoellerdev added a commit that referenced this pull request Nov 19, 2024
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

This is a follow up from
#1070 as @fabianburth
and I decided that it would probably be best to group process related
options under a specific struct to make it more explicit that they are
optional and not part of the normal resource description

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Co-authored-by: Fabian Burth <fabian.burth@sap.com>
@hilmarf hilmarf added the kind/feature new feature, enhancement, improvement, extension label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature new feature, enhancement, improvement, extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make add resource option --skip-digest-generation also available for component-constructor file usage
4 participants