Enable staticcheck in foregjo actions #482

Closed
opened 2023-06-28 12:45:34 +00:00 by fyrchik · 1 comment
Owner

We tried add it in #478, but using this action was not straightforward https://github.com/dominikh/staticcheck-action

Investigate or write a custom action (just make)

We tried add it in #478, but using this action was not straightforward https://github.com/dominikh/staticcheck-action Investigate or write a custom action (just `make`)
fyrchik added the
triage
label 2023-06-28 12:45:34 +00:00
acid-ant was assigned by fyrchik 2023-07-05 07:27:48 +00:00
Member

Unable to use staticcheck-action in our environment due to the issue with authorization:

  cloning https://codeberg.org/dominikh/staticcheck-action to /home/alexvanin/.cache/act/dominikh-staticcheck-action@v1.3.0
33
Unable to clone https://codeberg.org/dominikh/staticcheck-action refs/heads/v1.3.0: authentication required
34
authentication required
35
skipping post step for 'dominikh/staticcheck-action@v1.3.0'; step was not executed
36
skipping post step for 'Set up Go'; step was not executed
37
skipping post step for 'actions/checkout@v3'; step was not executed
38
...
Cleaning up network for job Tests (1.19), and network name is: GITEA-ACTIONS-TASK-1016_WORKFLOW-Tests-and-linters_JOB-Tests-1-19-network
44
🏁  Job failed
45
authentication required

https://git.frostfs.info/TrueCloudLab/frostfs-node/actions/runs/80/jobs/1

Also faced an issue with released version of staticcheck with go 1.20:

Run staticcheck23s
1
-: cannot import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" (unknown bexport format version -1 ("u\x01\x00\x00\x00\x00\x00\x00\x00%\x00\x00\x00'\x00\x00\x00*\x00\x00\x00,\x00\x00\x00>\x00\x00\x00C\x00\x00\x00U\x00\x00\x00g\x00\x00\x00y\x00\x00\x00\x8a\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00B\x00\x00\x00\xb3\x00\x00\x00\xbd\x00\x00\x00\xc

Link to the log: https://git.frostfs.info/TrueCloudLab/frostfs-node/actions/runs/86/jobs/2
Looks like a known issue, fixed in a latest version: https://github.com/dominikh/go-tools/issues/1203

Unable to use staticcheck-action in our environment due to the issue with authorization: ``` cloning https://codeberg.org/dominikh/staticcheck-action to /home/alexvanin/.cache/act/dominikh-staticcheck-action@v1.3.0 33 Unable to clone https://codeberg.org/dominikh/staticcheck-action refs/heads/v1.3.0: authentication required 34 authentication required 35 skipping post step for 'dominikh/staticcheck-action@v1.3.0'; step was not executed 36 skipping post step for 'Set up Go'; step was not executed 37 skipping post step for 'actions/checkout@v3'; step was not executed 38 ... Cleaning up network for job Tests (1.19), and network name is: GITEA-ACTIONS-TASK-1016_WORKFLOW-Tests-and-linters_JOB-Tests-1-19-network 44 🏁 Job failed 45 authentication required ``` https://git.frostfs.info/TrueCloudLab/frostfs-node/actions/runs/80/jobs/1 Also faced an issue with released version of staticcheck with go 1.20: ``` Run staticcheck23s 1 -: cannot import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" (unknown bexport format version -1 ("u\x01\x00\x00\x00\x00\x00\x00\x00%\x00\x00\x00'\x00\x00\x00*\x00\x00\x00,\x00\x00\x00>\x00\x00\x00C\x00\x00\x00U\x00\x00\x00g\x00\x00\x00y\x00\x00\x00\x8a\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00B\x00\x00\x00\xb3\x00\x00\x00\xbd\x00\x00\x00\xc ``` Link to the log: https://git.frostfs.info/TrueCloudLab/frostfs-node/actions/runs/86/jobs/2 Looks like a known issue, fixed in a latest version: https://github.com/dominikh/go-tools/issues/1203
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#482
No description provided.