Skip to content

Conversation

@kzys
Copy link
Member

@kzys kzys commented Feb 21, 2022

Protobuild was assuming that canonicalized relative file paths and
Go import paths are the same. This is not true on Windows where
the former uses \ but the latter uses (as like other OSes) /.

This change fixes the issue and adds some tests around the
implementation to prevent regressions.

Fixes #47.

@kzys kzys marked this pull request as draft February 21, 2022 18:54
@kzys kzys force-pushed the test-windows branch 3 times, most recently from 465e6a2 to 92b6d20 Compare February 21, 2022 19:09
Protobuild was assuming that canonicalized relative file paths and
Go import paths are the same. This is not true on Windows where
the former uses `\` but the latter uses (as like other OSes) `/`.

This change fixes the issue and adds some tests around the
implementation to prevent regressions.

Fixes containerd#47.

Signed-off-by: Kazuyoshi Kato <[email protected]>
@kzys kzys changed the title Run tests on Windows Fix overrides on Windows Feb 21, 2022
@kzys kzys marked this pull request as ready for review February 21, 2022 19:17
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@dmcgowan dmcgowan merged commit f9731ed into containerd:main Feb 23, 2022
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.

Should the overrides prefixes be matching on filesystem case, or Go package name?

3 participants