Skip to content

chore: make traversal state a string type to allow for easy printing#565

Merged
fabianburth merged 1 commit into
open-component-model:mainfrom
fabianburth:chore/traversal-state-to-string-type
Aug 14, 2025
Merged

chore: make traversal state a string type to allow for easy printing#565
fabianburth merged 1 commit into
open-component-model:mainfrom
fabianburth:chore/traversal-state-to-string-type

Conversation

@fabianburth

@fabianburth fabianburth commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

iota cannot easily be printed, which is quite annoying for rendering the graph. lets change it while we still can.

Which issue(s) this PR fixes

Contributes to open-component-model/ocm-project#563

@fabianburth fabianburth marked this pull request as ready for review August 14, 2025 13:36
@fabianburth fabianburth requested a review from a team as a code owner August 14, 2025 13:36
@github-actions github-actions Bot added kind/chore chore, maintenance, etc. size/s Small labels Aug 14, 2025

@Skarlso Skarlso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should implement a Stringer on the iota <3

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
@fabianburth fabianburth force-pushed the chore/traversal-state-to-string-type branch from 9a85811 to 9227475 Compare August 14, 2025 13:51
@fabianburth

Copy link
Copy Markdown
Contributor Author

okidoki - makes sense! 👍

@fabianburth fabianburth merged commit 2de7136 into open-component-model:main Aug 14, 2025
17 checks passed
@fabianburth fabianburth deleted the chore/traversal-state-to-string-type branch August 14, 2025 14:04
matthiasbruns added a commit that referenced this pull request Aug 15, 2025
Based on the comment
#557 (comment)

#### What this PR does / why we need it
Resolve file/dir inputs relative to the constructor file by wiring a
filesystem working directory through input methods; default-deny path
escapes with an explicit opt-out.

Changes (high level):

- Added WorkingDirectory handling to the input bindings

#### Which issue(s) this PR fixes
Fixes
[#565](open-component-model/ocm-project#565)

---------

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Co-authored-by: Jakob Möller <jakob.moeller@sap.com>
jakobmoellerdev added a commit that referenced this pull request Aug 18, 2025
Cherry picking constructor changes from
#540

#### What this PR does / why we need it
Resolve file/dir inputs relative to the constructor file by wiring a
filesystem working directory through input methods; default-deny path
escapes with an explicit opt-out.

Changes (high level):

- Added WorkingDirectory handling to the input bindings

#### Which issue(s) this PR fixes
Fixes
[#565](open-component-model/ocm-project#565)

---------

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Co-authored-by: Fabian Burth <fabian.burth@sap.com>
Co-authored-by: Jakob Möller <jakob.moeller@sap.com>
jakobmoellerdev pushed a commit to jakobmoellerdev/open-component-model that referenced this pull request Aug 21, 2025
…odel#548)

Cherry picking filesystem changes from
open-component-model#540

#### What this PR does / why we need it
Resolve file/dir inputs relative to the constructor file by wiring a
filesystem working directory through input methods; default-deny path
escapes with an explicit opt-out.

Changes (high level):

- Added WorkingDirectory to FS config

#### Which issue(s) this PR fixes
Fixes
[open-component-model#565](open-component-model/ocm-project#565)

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
jakobmoellerdev added a commit that referenced this pull request Aug 22, 2025
#### What this PR does / why we need it
Resolve file/dir inputs relative to the constructor file by wiring a
filesystem working directory through input methods; default-deny path
escapes with an explicit opt-out.

Changes (high level):

- Added WorkingDirectory to FS config and flag plumbing in CLI.
- Updated file/dir input methods to use the working dir + path utils;
tests updated for path handling.

#### Which issue(s) this PR fixes
Fixes
[#565](open-component-model/ocm-project#565)

---------

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Co-authored-by: Jakob Möller <jakob.moeller@sap.com>
jakobmoellerdev pushed a commit that referenced this pull request Aug 22, 2025
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it
- Add missing tests for
[#565](open-component-model/ocm-project#565)

#### Which issue(s) this PR fixes
Fixes
[#565](open-component-model/ocm-project#565)

---------

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/chore chore, maintenance, etc. size/s Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants