Skip to content

logging: ensure that MagicArgv1 is always argv1 - #1055

Closed
Zheaoli wants to merge 1 commit into
containerd:masterfrom
Zheaoli:manjusaka/fix-1054
Closed

Zheaoli wants to merge 1 commit into
containerd:masterfrom
Zheaoli:manjusaka/fix-1054

Conversation

@Zheaoli

@Zheaoli Zheaoli commented May 12, 2022 •

Copy link
Copy Markdown
Member

fix: #1054

Signed-off-by: Zheao.Li [email protected]

@Zheaoli
Zheaoli force-pushed the manjusaka/fix-1054 branch from 8f86f2d to 32e8e3c Compare May 12, 2022 03:48
query.Set("aa", "2")
result := query.Encode()
assert.Equal(t, result, "abc=1&aa=2", "")
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

May I ask if it is correct if we sort the args when in the nerdctl xmain function?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

BTW, we have a fallback here https://github.com/containerd/nerdctl/blob/master/cmd/nerdctl/main.go#L75-L80 to help us ignore the args order. Maybe we don't need to concern about the args order?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

May I ask if it is correct if we sort the args when in the nerdctl xmain function?

No, that doesn't work with nerdctl run busybox echo "_NERDCTL_INTERNAL_LOGGING"

Maybe we don't need to concern about the args order?

Need

@AkihiroSuda

Copy link
Copy Markdown
Member

Opened an alternative PR #1056

@Zheaoli
Zheaoli deleted the manjusaka/fix-1054 branch January 11, 2023 03:13
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.

logging: ensure that MagicArgv1 is always argv1

2 participants