Skip to content
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

prefer canonical transform vs DecodeMapStructure #692

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Oct 4, 2024

Avoid use of DecodeMapstructure when we can just make yaml tree canonical

@ndeloof ndeloof requested a review from glours October 4, 2024 12:50
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@glours
Copy link
Collaborator

glours commented Oct 4, 2024

The main issue here is the default value of count which should be -1 (see moby/moby#48482)

@ndeloof
Copy link
Collaborator Author

ndeloof commented Oct 4, 2024

I haven't removed DeviceCount#DecodeMapstructure which handle this case

@glours
Copy link
Collaborator

glours commented Oct 4, 2024

I just see that, and the all is converted to -1 so it's fine for me 👍

Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

@ndeloof
Copy link
Collaborator Author

ndeloof commented Oct 4, 2024

to be debated such moby-specific tweaks should live in this repository, or must move to docker specific implementation as docker/compose

@ndeloof ndeloof merged commit 8158217 into compose-spec:main Oct 4, 2024
8 checks passed
@ndeloof ndeloof deleted the gpus branch October 4, 2024 12:56
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.

2 participants