-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Welcome
- Yes, I'm using a binary release within 2 latest releases. Only such installations are supported.
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've read the
typecheck
section of the FAQ. - Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.).
- I agree to follow this project's Code of Conduct
Description of the problem
$ golangci-lint run --fix
WARN [runner] Can't run linter goanalysis_metalinter: inspect: failed to load package app: could not load export data: no export data for "fyne.io/fyne/v2/app"
ERRO Running error: can't run linter goanalysis_metalinter
inspect: failed to load package app: could not load export data: no export data for "fyne.io/fyne/v2/app"
I skipped the directory where that file is located and I still get the same error.
Version of golangci-lint
golangci-lint --version
golangci-lint has version v1.62.2 built with go1.23.2 from (unknown, modified: ?, mod sum: "h1:b8K5K9PN+rZN1+mKLtsZHz2XXS9aYKzQ9i25x3Qnxxw=") on (unknown)
Configuration
run:
timeout: 5m
linters:
disable-all: true
enable:
- gofumpt
- govet
- misspell
- revive
- lll
linters-settings:
gofumpt:
extra-rules: true
lll:
line-length: 160
tab-width: 1
govet:
# Matches what we use in corp as of 2023-12-07
enable:
- asmdecl
- assign
- atomic
- bools
- buildtag
- cgocall
- copylocks
- deepequalerrors
- errorsas
- framepointer
- httpresponse
- ifaceassert
- loopclosure
- lostcancel
- nilfunc
- nilness
- printf
- reflectvaluecompare
- shift
- sigchanyzer
- sortslice
- stdmethods
- stringintconv
- structtag
- testinggoroutine
- tests
- unmarshal
- unreachable
- unsafeptr
- unusedresult
revive:
enable-all-rules: false
ignore-generated-header: true
rules:
- name: atomic
- name: context-keys-type
- name: defer
arguments: [ [
# Calling 'recover' at the time a defer is registered (i.e. "defer recover()") has no effect.
"immediate-recover",
# Calling 'recover' outside of a deferred function has no effect
"recover",
# Returning values from a deferred function has no effect
"return",
] ]
- name: duplicated-imports
- name: errorf
- name: string-of-int
- name: time-equal
- name: unconditional-recursion
- name: useless-break
- name: waitgroup-by-value
issues:
exclude-dirs:
- daemon-ui
Go environment
go version && go env
go version go1.23.2 linux/amd64
GO111MODULE='on'
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://goproxy.cn,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.2'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='0'
GOMOD='/mnt/i/code/mesh/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3840113770=/tmp/go-build -gno-record-gcc-switches'
Verbose output of running
$ golangci-lint run -v
INFO golangci-lint has version v1.62.2 built with go1.23.2 from (unknown, modified: ?, mod sum: "h1:b8K5K9PN+rZN1+mKLtsZHz2XXS9aYKzQ9i25x3Qnxxw=") on (unknown)
INFO [config_reader] Config search paths: [./ /mnt/i/code/mesh /mnt/i/code /mnt/i /mnt / /root]
INFO [config_reader] Used config file .golangci.yml
INFO [lintersdb] Active 5 linters: [gofumpt govet lll misspell revive]
INFO [loader] Go packages loading at mode 8767 (compiled_files|exports_file|imports|name|deps|files|types_sizes) took 18.030615921s
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 438.588443ms
INFO [linters_context/goanalysis] analyzers took 33.125506682s with top 10 stages: the_only_name: 22.572948634s, gofumpt: 2.749654897s, misspell: 2.255548414s, lll: 2.153301417s, inspect: 1.292751971s, printf: 704.465039ms, ctrlflow: 666.508529ms, buildssa: 397.758806ms, lostcancel: 42.964364ms, directive: 32.50342ms
WARN [runner] Can't run linter goanalysis_metalinter: inspect: failed to load package app: could not load export data: no export data for "fyne.io/fyne/v2/app"
INFO [runner] processing took 2.78µs with stages: max_same_issues: 510ns, path_prettifier: 460ns, skip_dirs: 290ns, cgo: 230ns, skip_files: 140ns, filename_unadjuster: 140ns, invalid_issue: 130ns, nolint: 130ns, max_from_linter: 120ns, identifier_marker: 110ns, fixer: 50ns, max_per_file_from_linter: 50ns, diff: 50ns, exclude: 50ns, sort_results: 40ns, exclude-rules: 40ns, autogenerated_exclude: 40ns, uniq_by_line: 40ns, severity-rules: 40ns, path_shortener: 40ns, source_code: 40ns, path_prefixer: 40ns
INFO [runner] linters took 6.141458296s with stages: goanalysis_metalinter: 6.141355877s
ERRO Running error: can't run linter goanalysis_metalinter
inspect: failed to load package app: could not load export data: no export data for "fyne.io/fyne/v2/app"
INFO Memory: 248 samples, avg is 175.5MB, max is 753.3MB
INFO Execution took 24.662479151s
A minimal reproducible example or link to a public repository
package main
import (
"fyne.io/fyne/v2/app"
)
func main() {
a := app.New()
w := a.NewWindow("Hello World!")
w.ShowAndRun()
}
Validation
- Yes, I've included all information above (version, config, etc.).
Supporter
- I am a sponsor/backer through GitHub or OpenCollective
ip75
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested