-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
warn user remote resource is disabled #11051
Conversation
Signed-off-by: Nicolas De Loof <[email protected]>
8ae00fe
to
fe8c278
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #11051 +/- ##
==========================================
+ Coverage 57.55% 57.73% +0.18%
==========================================
Files 129 129
Lines 11237 11245 +8
==========================================
+ Hits 6467 6492 +25
+ Misses 4141 4127 -14
+ Partials 629 626 -3
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM when the lint issue will be fixed
Signed-off-by: Nicolas De Loof <[email protected]>
Signed-off-by: Guillaume Lours <[email protected]>
@@ -114,51 +114,51 @@ func (g ociRemoteLoader) Load(ctx context.Context, path string) (string, error) | |||
return "", err | |||
} | |||
|
|||
s, err2 := g.pullComposeFiles(ctx, local, composeFile, manifest, ref, resolver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could also rename variable err
Sorry I see your comment too late 😬 |
What I did
as user forgot (?) to enable git/oci remote resource support (still experimental) compose tries to resolve a local path from URL. This is obvious something is wrong, but the way to get this fixed isn't.
this PR let the remote resource loader detect it should load a remote resource, but report an explicit error and way to fix it.