mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Fix deprecated virtual runner and golangci-lint deprecated checkers (#7716)
This commit is contained in:
parent
e48541ec89
commit
1a6380d590
3 changed files with 2 additions and 3 deletions
2
.github/workflows/fleetctl-preview.yml
vendored
2
.github/workflows/fleetctl-preview.yml
vendored
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
# Doesn't work on Windows because Linux Docker containers are not supported.
|
||||
os: [ubuntu-20.04, ubuntu-18.04, macos-11, macos-12]
|
||||
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
- deadcode
|
||||
- depguard
|
||||
- gosec
|
||||
- gocritic
|
||||
|
|
@ -11,7 +10,6 @@ linters:
|
|||
- revive
|
||||
- rowserrcheck
|
||||
- sqlclosecheck
|
||||
- structcheck
|
||||
- typecheck
|
||||
- unconvert
|
||||
- unused
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import (
|
|||
func main() {
|
||||
fs := http.FileServer(http.FS(os.DirFS(os.Args[2])))
|
||||
http.Handle("/", fs)
|
||||
//nolint:gosec // G114: file server used for testing purposes only.
|
||||
err := http.ListenAndServe(":"+os.Args[1], nil)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue