Replies: 13 comments 22 replies
-
@thebeline could you provide the information to fill the issue?
|
Beta Was this translation helpful? Give feedback.
-
@thebeline I think that your problem is related to something else:
|
Beta Was this translation helpful? Give feedback.
-
I think it's about https://github.com/thebeline/OctoScreen/tree/IMP/GolangLinter or https://github.com/thebeline/OctoScreen/tree/MESS/GolangLinter @thebeline could you confirm? |
Beta Was this translation helpful? Give feedback.
-
@ldez - Certainly. I need to draft up an MVP for the issue. But below I will try to describe the steps as I can remember.
There are probably some red flags in there, but note that it does run in GitHubActions. Verbose Output HEAD (errors as described follow):
After alll of this, I think I should clarify: Locally, I know this error is caused because That is my mistake. What I am actually raising as an issue:
MESS/GolangLinter can be ignored for now, but yes, |
Beta Was this translation helpful? Give feedback.
-
With regards to the One thing that I was looking at was related to: https://github.com/golangci/golangci-lint-action/issues/192 Which, as I go down the rabbit hole, I now realize has nothing to do with the action, but moreso with linter it's self. Actually, I have never run the linter locally, which is why I hadn't seen this issue until now. I only just started trying to run it locally because I was going to try poking things to figure out how the linter worked, and why exactly it was behaving as I had mentioned in the Action Issue I opened. |
Beta Was this translation helpful? Give feedback.
-
Your problem in https://github.com/golangci/golangci-lint-action#192 is related to #1490, it's not related to the github action |
Beta Was this translation helpful? Give feedback.
-
Ah, it would seem, more specifically: #1490 (comment) A function like Still, it seems odd that if |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I converted the issue to a discussion because you problem is a bit blurry |
Beta Was this translation helpful? Give feedback.
-
There are several topics:
The Go team only maintains the 2 last minor versions: go1.15 and go1.16 To migrate to Go modules: $ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
$ go mod init github.com/Z-Bolt/OctoScreen
go: creating new go.mod: module github.com/Z-Bolt/OctoScreen
go: copying requirements from Gopkg.lock
go: to add module requirements and sums:
go mod tidy
$ go mod tidy
go: downloading github.com/mcuadros/go-octoprint v0.0.0-20180104080025-01362f94e21f
go: downloading github.com/gotk3/gotk3 v0.0.0-20171227192530-8364b1c62f2b
go: downloading github.com/sirupsen/logrus v1.0.4
go: downloading github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4
go: downloading github.com/shirou/gopsutil v2.17.12+incompatible
go: downloading golang.org/x/crypto v0.0.0-20171231215028-0fcca4842a8d
go: downloading golang.org/x/sys v0.0.0-20180104162908-a3f2cbd54cf5
go: downloading github.com/StackExchange/wmi v0.0.0-20170410192909-ea383cf3ba6e
go: downloading github.com/go-ole/go-ole v1.2.0
go: finding module for package gopkg.in/check.v1
go: finding module for package pifke.org/wpasupplicant
go: finding module for package github.com/coreos/go-systemd/daemon
go: finding module for package gopkg.in/gemnasium/logrus-airbrake-hook.v2
go: finding module for package github.com/golang-collections/collections/stack
go: finding module for package github.com/stretchr/testify/assert
go: downloading gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2
go: found github.com/coreos/go-systemd/daemon in github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
go: found github.com/golang-collections/collections/stack in github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3
go: found pifke.org/wpasupplicant in pifke.org/wpasupplicant v0.0.0-20200816231324-12bdf536389f
go: found github.com/stretchr/testify/assert in github.com/stretchr/testify v1.7.0
go: found gopkg.in/gemnasium/logrus-airbrake-hook.v2 in gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2
go: found gopkg.in/check.v1 in gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
go: finding module for package gopkg.in/airbrake/gobrake.v2
go: downloading gopkg.in/airbrake/gobrake.v2 v2.0.9
go: found gopkg.in/airbrake/gobrake.v2 in gopkg.in/airbrake/gobrake.v2 v2.0.9
$ rm -rf vendor/
$ rm Gopkg.* |
Beta Was this translation helpful? Give feedback.
-
I am out of the office, likely until tomorrow afternoon. But a few things of note:
As for helpfulness: I get that the CI linter it's self doesnt check the environment, but it does get a sort of stack trace, and i would think "Can't import C" or "gccg" errors would be a fairly good indicator that everything is about to go belly up. That said, I can understand that detecting that is not the CI Linters responsibility. With regards to duplication: I started running some tests, but things got weirder and weirder. I really need to make you a chart to show you what I mean. I know that the original topic started because i was getting |
Beta Was this translation helpful? Give feedback.
-
Short version of my findings:
I did have a short list of linters I was testing by hand (you may have it in your inbox), but when i realized I needed to do more research, i deleted the comment. If I recall: |
Beta Was this translation helpful? Give feedback.
-
On a different topic, any idea what would cause:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
#1861 (comment)
Beta Was this translation helpful? Give feedback.
All reactions