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

add support for build.privileged and service.cgroup #330

Merged
merged 1 commit into from Dec 20, 2022

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Dec 20, 2022

No description provided.

types/types.go Outdated
@@ -354,12 +356,12 @@ type ThrottleDevice struct {
// ShellCommand is a string or list of string args.
//
// When marshaled to YAML, nil command fields will be omitted if `omitempty`
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or `''`)
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or ``)
Copy link
Contributor

Choose a reason for hiding this comment

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

@ndeloof you're IDE again?

Suggested change
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or ``)
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or `''`)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

😓 I thought I found the right option to prevent this.

types/types.go Outdated
// will serialize to an empty array (`[]`).
//
// When marshaled to JSON, the `omitempty` struct must NOT be specified.
// If the command field is nil, it will be serialized as `null`.
// Explicitly empty commands (i.e. `[]` or `''`) will serialize to an empty
// Explicitly empty commands (i.e. `[]` or ``) will serialize to an empty
Copy link
Contributor

Choose a reason for hiding this comment

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

same?

Suggested change
// Explicitly empty commands (i.e. `[]` or ``) will serialize to an empty
// Explicitly empty commands (i.e. `[]` or `''`) will serialize to an empty

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Contributor

@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 ndeloof merged commit b764b46 into compose-spec:master Dec 20, 2022
@ndeloof ndeloof deleted the sync branch December 20, 2022 09:28
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.

None yet

2 participants