Open jlewi opened 5 months ago
So we call tarutil.build https://github.com/jlewi/hydros/blob/2d35fa0424852e34d4916568a9aaa5b46ddc75e4/pkg/images/controller.go#L170
This should end up calling copyLocalPath here https://github.com/jlewi/hydros/blob/2d35fa0424852e34d4916568a9aaa5b46ddc75e4/pkg/tarutil/builder.go#L77
The only scheme that is supported is file https://github.com/jlewi/hydros/blob/2d35fa0424852e34d4916568a9aaa5b46ddc75e4/pkg/tarutil/builder.go#L95
So why would this ever work with a git or https scheme?
Its because when we do build we automatically replace the remotes here https://github.com/jlewi/hydros/blob/2d35fa0424852e34d4916568a9aaa5b46ddc75e4/pkg/images/controller.go#L137
So if there is a problem replacing the remote then we don't get a file URI.
At the very least we should probably surface a more actionable error message somewhere for the user.
Here's the yaml
Here's the stacktrace