8000 Fix panic issues by glours · Pull Request #784 · compose-spec/compose-go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix panic issues #784

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

Merged
merged 2 commits into from
May 7, 2025
Merged

Fix panic issues #784

merged 2 commits into from
May 7, 2025

Conversation

glours
Copy link
Collaborator
@glours glours commented May 7, 2025

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@glours glours requested a review from ndeloof as a code owner May 7, 2025 08:51
@glours glours self-assigned this May 7, 2025
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@glours glours force-pushed the fix-panic-issues branch from 6551d4a to 16f88fb Compare May 7, 2025 08:54
ref = v["service"].(string)
ref, ok = v["service"].(string)
if !ok {
return nil, fmt.Errorf("extends.%s.service is required", name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json schema already declares "required": ["service"], so why do we end up seing this?

@glours glours merged commit 70d014d into compose-spec:main May 7, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic when using extends without specifying service
2 participants
0