open-component-model / ocm

Open Component Model (Software Bill of Delivery Toolset)
https://ocm.software
Apache License 2.0
31 stars 19 forks source link

sync.Once function for logger config isn't actually called #771

Closed Skarlso closed 2 months ago

Skarlso commented 2 months ago

What happened:

https://github.com/open-component-model/ocm/blob/main/pkg/utils/subst/subst.go#L44

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know:

Environment:

Skarlso commented 2 months ago

Nevermind, I was thinking about sync.OnceFunc().

Skarlso commented 2 months ago

Actually, don't use the struct.