-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix invalid SQL generated by OrderBy().Collate() #268
Conversation
I have no clue why the linters are failing in the GitHub Actions pipeline. I haven't changed anything in these files, plus everything passes locally: golangci-lint run --out-format=github-actions --verbose
INFO golangci-lint has version 1.59.1 built with go1.22.3 from 1a55854a on 2024-06-09T18:08:33Z
INFO [config_reader] Config search paths: [./ /home/marin/Projects/GolandProjects/bob /home/marin/Projects/GolandProjects /home/marin/Projects /home/marin /home /]
INFO [config_reader] Used config file .golangci.yml
WARN [config_reader] The output format `github-actions` is deprecated, please use `colored-line-number`
INFO [lintersdb] Active 28 linters: [errcheck errname errorlint gci gochecknoglobals gocyclo godox gofumpt gosec gosimple govet ineffassign maintidx misspell nakedret nestif nilerr nilnil noctx nolintlint nonamedreturns prealloc predeclared revive staticcheck thelper unparam unused]
INFO [loader] Go packages loading at mode 575 (compiled_files|exports_file|files|name|deps|imports|types_sizes) took 34.490438048s
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 11.363517ms
INFO [linters_context/goanalysis] analyzers took 29.202710066s with top 10 stages: buildir: 3.508233577s, the_only_name: 1.048607225s, gofumpt: 1.00165496s, buildssa: 798.978833ms, gosec: 783.836463ms, gci: 708.717586ms, errorlint: 590.077327ms, unparam: 574.213133ms, unused: 414.651335ms, commentmap: 407.469924ms
INFO [runner] Issues before processing: 2956, after processing: 0
INFO [runner] Processors filtering stat (out/in): invalid_issue: 2535/2956, cgo: 2956/2956, skip_files: 2535/2535, identifier_marker: 2535/2535, filename_unadjuster: 2956/2956, skip_dirs: 2535/2535, exclude-rules: 0/2535, path_prettifier: 2535/2535, autogenerated_exclude: 2535/2535, exclude: 2535/2535
INFO [runner] processing took 14.734949ms with stages: identifier_marker: 13.253394ms, path_prettifier: 813.415µs, skip_dirs: 193.463µs, exclude-rules: 168.194µs, cgo: 91.445µs, invalid_issue: 83.565µs, filename_unadjuster: 69.603µs, autogenerated_exclude: 56.857µs, nolint: 1.358µs, max_same_issues: 951ns, sort_results: 393ns, fixer: 380ns, skip_files: 304ns, max_from_linter: 292ns, uniq_by_line: 275ns, exclude: 243ns, max_per_file_from_linter: 180ns, path_shortener: 154ns, path_prefixer: 145ns, source_code: 130ns, diff: 120ns, severity-rules: 88ns
INFO [runner] linters took 1.111818364s with stages: goanalysis_metalinter: 1.097011149s
INFO File cache stats: 222 entries of total size 640.3KiB
INFO Memory: 358 samples, avg is 38.6MB, max is 581.1MB
INFO Execution took 35.617245955s |
It is possible you're running a slightly older version. |
You're right. I used to run |
Thank you for all you work this. Please also add details of this to the CHANGELOG 🙏🏾 |
✔️ Done |
Is it necessary to include |
I apologize, this is an SQLite database I used for testing. I must have committed it by mistake. I'll update the PR accordingly later today. |
PR updated. Sorry for the oversight. |
Fixes #252
Tested with the following schemas and code:
MySQL
PostgreSQL
SQLite
Let me know if any adjustments are necessary.