Skip to content

Enable linter checks on Windows#4609

Merged
dmcgowan merged 3 commits intocontainerd:masterfrom
mxpv:linter
Oct 8, 2020
Merged

Enable linter checks on Windows#4609
dmcgowan merged 3 commits intocontainerd:masterfrom
mxpv:linter

Conversation

@mxpv
Copy link
Copy Markdown
Member

@mxpv mxpv commented Oct 7, 2020

This PR:

  • Enables linter checks on Windows
  • Uses the Github Action for golangci-lint, so setup is a bit simpler and we have less things to manage (they also promise better performance due to caching).

This will also make linter errors more expressive:

mxpv added 2 commits October 7, 2020 15:08
Signed-off-by: Maksym Pavlenko <[email protected]>
Signed-off-by: Maksym Pavlenko <[email protected]>
@mxpv mxpv force-pushed the linter branch 2 times, most recently from de62f92 to 1850510 Compare October 7, 2020 22:31
@containerd containerd deleted a comment from theopenlab-ci Bot Oct 7, 2020
Signed-off-by: Maksym Pavlenko <[email protected]>
@mxpv mxpv marked this pull request as ready for review October 7, 2020 22:48
@containerd containerd deleted a comment from theopenlab-ci Bot Oct 7, 2020
@containerd containerd deleted a comment from k8s-ci-robot Oct 7, 2020
Copy link
Copy Markdown
Member

@dmcgowan dmcgowan 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
Copy link
Copy Markdown
Member

dmcgowan commented Oct 8, 2020

After this change we should probably add proto-fmt to the proto job. Before this make check was running lint and the proto check. It makes more sense to keep the proto checks together though anyway.

@dmcgowan dmcgowan merged commit 5151336 into containerd:master Oct 8, 2020
@mxpv mxpv deleted the linter branch October 8, 2020 02:24
costanic added a commit to PelionIoT/snap-pelion-edge that referenced this pull request Jan 7, 2021
Use source-tag attribute instead of source-commit attribute in
order to clone the repo in a single step, rather than a two-step
process of git-clone followed by git-checkout <sha>, which due
to a setting in the .gitattributes file of the docker-containerd
repo leaves the freshly cloned repo in a dirty state and thus
unable to checkout a specific SHA.

Here is the PR that introduced the build breakage:
    containerd/containerd#4609

Specifically this commit:
    containerd/containerd@8b03df2

For reference regarding the “eol” setting in .gitattributes file:
    https://www.git-scm.com/docs/gitattributes#_eol

    “Note that setting this attribute on paths which are in the
     index with CRLF line endings may make the paths to be
     considered dirty”
costanic added a commit to PelionIoT/snap-pelion-edge that referenced this pull request Jan 8, 2021
Use source-tag attribute instead of source-commit attribute in
order to clone the repo in a single step, rather than a two-step
process of git-clone followed by git-checkout <sha>, which due
to a setting in the .gitattributes file of the docker-containerd
repo leaves the freshly cloned repo in a dirty state and thus
unable to checkout a specific SHA.

Here is the PR that introduced the build breakage:
    containerd/containerd#4609

Specifically this commit:
    containerd/containerd@8b03df2

For reference regarding the “eol” setting in .gitattributes file:
    https://www.git-scm.com/docs/gitattributes#_eol

    “Note that setting this attribute on paths which are in the
     index with CRLF line endings may make the paths to be
     considered dirty”
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