You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is likely a more rare use case, but I want to use go embed to include a string-ified compose file (that loads into a Project) and I'm wondering if you have an example to do that? I'm looking here: https://github.com/compose-spec/compose-go/blob/b9d3b1deec9bc25de0fa81867ca4df75aef5c791/cli/options.go and I see that ReadConfigFiles can accept a path or stdin, but not a loaded string. I can try to dig deeper and see if I can come up with something, or fall back to reading from file for now, but I'm hoping someone has come up with something.
And a follow up question - is this just a library for implementing the spec or does it make it easy to map into https://github.com/docker/compose?
This is likely a more rare use case, but I want to use go embed to include a string-ified compose file (that loads into a Project) and I'm wondering if you have an example to do that? I'm looking here: https://github.com/compose-spec/compose-go/blob/b9d3b1deec9bc25de0fa81867ca4df75aef5c791/cli/options.go and I see that ReadConfigFiles can accept a path or stdin, but not a loaded string. I can try to dig deeper and see if I can come up with something, or fall back to reading from file for now, but I'm hoping someone has come up with something.
And a follow up question - is this just a library for implementing the spec or does it make it easy to map into https://github.com/docker/compose?
Derp - it's right here 😆 https://github.com/docker/compose/blob/eececb9add3748fce765c3094575d3c52d8cfdbf/cmd/compose/compose.go#L32-L35.
Thanks!
The text was updated successfully, but these errors were encountered: