Skip to content

.github/workflows: Remove golangci-lint - #1221

Merged
debarshiray merged 1 commit into
containers:mainfrom
debarshiray:wip/rishi/github-workflows-remove-golangci-lint
Jan 29, 2023
Merged

debarshiray merged 1 commit into
containers:mainfrom
debarshiray:wip/rishi/github-workflows-remove-golangci-lint

Conversation

@debarshiray

Copy link
Copy Markdown
Member

The previous commit broke the golangci-lint test [1] because the GitHub Action runs on Ubuntu 22.04, which only has Shadow 4.8 [2], whereas libsubid.so was introduced in Shadow 4.9 [3].

However, that's not a big deal because 'go vet' was earlier added to the set of tests run by 'meson test' [4], and 'go vet' is one of the linters run by golangci-lint [5]. So, while it's not a proper replacement, it's good enough.

[1] Commit ca8007c
#1180

[2] https://packages.ubuntu.com/source/jammy/shadow
https://packages.ubuntu.com/source/jammy-updates/shadow

[3] Shadow commit 0a7888b1fad613a0
shadow-maint/shadow@0a7888b1fad613a0
shadow-maint/shadow#154

[4] Commit f695012
#1186

[5] https://golangci-lint.run/usage/linters/
https://golangci-lint.run/usage/linters/#govet

This reverts commit 7c86f30.

The previous commit broke the golangci-lint test [1] because the GitHub
Action runs on Ubuntu 22.04, which only has Shadow 4.8 [2], whereas
libsubid.so was introduced in Shadow 4.9 [3].

However, that's not a big deal because 'go vet' was earlier added to the
set of tests run by 'meson test' [4], and 'go vet' is one of the linters
run by golangci-lint [5].  So, while it's not a proper replacement, it's
good enough.

[1] Commit ca8007c
    containers#1180

[2] https://packages.ubuntu.com/source/jammy/shadow
    https://packages.ubuntu.com/source/jammy-updates/shadow

[3] Shadow commit 0a7888b1fad613a0
    shadow-maint/shadow@0a7888b1fad613a0
    shadow-maint/shadow#154

[4] Commit f695012
    containers#1186

[5] https://golangci-lint.run/usage/linters/
    https://golangci-lint.run/usage/linters/#govet

This reverts commit 7c86f30.

containers#1221
@debarshiray
debarshiray force-pushed the wip/rishi/github-workflows-remove-golangci-lint branch from 3d1a123 to 825c7e8 Compare January 29, 2023 10:32
@softwarefactory-delete-me

Copy link
Copy Markdown

Build succeeded.

✔️ unit-test SUCCESS in 8m 42s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 04s
✔️ system-test-fedora-rawhide SUCCESS in 13m 06s
✔️ system-test-fedora-36 SUCCESS in 12m 26s
✔️ system-test-fedora-35 SUCCESS in 13m 58s

@softwarefactory-delete-me

Copy link
Copy Markdown

Build succeeded.

✔️ unit-test SUCCESS in 8m 24s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 2m 54s
✔️ system-test-fedora-rawhide SUCCESS in 12m 44s
✔️ system-test-fedora-36 SUCCESS in 12m 31s
✔️ system-test-fedora-35 SUCCESS in 14m 11s

@debarshiray
debarshiray merged commit 825c7e8 into containers:main Jan 29, 2023
@debarshiray
debarshiray deleted the wip/rishi/github-workflows-remove-golangci-lint branch January 29, 2023 10:57
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.

1 participant