222twotwotwo opened a new issue, #134:
URL: https://github.com/apache/dubbo-getty/issues/134

   <!-- Please use this template while reporting a bug and provide as much info 
as possible. Not doing so may result in your bug not being addressed in a 
timely manner. Thanks!
   
   -->
   
   
   **What happened**:
   
   
   The GitHub Actions CI failed in the `Check Code Format` step while running 
`make fmt`.
   
   Failed run:
   
   
https://github.com/apache/dubbo-getty/actions/runs/29495763739/job/87612835132
   
   Relevant log:
   
   ```text
   go run 
golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest 
-category=efaceany -fix -test ./...
   flag provided but not defined: -category
   make: *** [Makefile:39: fmt] Error 1
   ```
   **What you expected to happen**:
   
   make fmt should complete successfully and CI should continue to the unit 
test, lint, and coverage steps.
   The format check should be stable and should not break because the upstream 
modernize@latest CLI changed.
   
   **How to reproduce it (as minimally and precisely as possible)**:
   
   Run the current fmt target:
   ```
   make fmt
   ```
   Or run the failing command directly:
   ```
   go run 
golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest 
-category=efaceany -fix -test ./...
   ```
   
   **Anything else we need to know?**:
   
   The current Makefile uses modernize@latest with -category=efaceany, but the 
latest modernize CLI no longer supports -category. The equivalent current flag 
appears to be -any.
   A minimal fix may be to replace -category=efaceany with -any. A more stable 
fix would be to pin the modernize tool version instead of using @latest.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to