Skip to content

Use of un-exported interface InternalizeRefs  #994

@rdwr-valentineg

Description

@rdwr-valentineg

Hello Team,

I have a use-case requiring me to overload the current RefString\RefPath functions,
In my use case the ref may contain non-ascii chars and my overload hashes Ref field.
up to v0.125.0 my use-case was possible since InternalizeRefs signature was:

func (doc *T) InternalizeRefs(ctx context.Context, refNameResolver func(ref string) string) {

which allowed overloading refNameResolver function,

Current implementation:

func (doc *T) InternalizeRefs(ctx context.Context, refNameResolver func(*T, componentRef) string) {

uses the componentRef which isn't exported, as a result my use-case isn't really possible (apart of doing major reimplementation),
Is there am option to export this interface thus allowing me to achieve previously possible behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions