Skip to content

Conversation

@Zheaoli
Copy link
Member

@Zheaoli Zheaoli commented May 12, 2022

fix: #1054

Signed-off-by: Zheao.Li me@manjusaka.me

Signed-off-by: Zheao.Li <me@manjusaka.me>
@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
Member

Choose a reason for hiding this comment

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

Sorry, this is not correct, as the ordering is ignored on parsing back the string to *net.URL

https://github.com/containerd/containerd/blob/e85b5a0b81a610f564c3240c69d8f7324b5ecadb/pkg/process/io_util.go#L31

Copy link
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
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
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
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