skandragon opened a new issue, #13439:
URL: https://github.com/apache/skywalking/issues/13439

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache SkyWalking Component
   
   License Tools (apache/skywalking-eyes)
   
   ### What happened
   
   ```sh
   go tool license-eye header check
   INFO Loading configuration from file: .licenserc.yaml
   panic: runtime error: invalid memory address or nil pointer dereference
   [signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x101034a04]
   
   goroutine 1 [running]:
   github.com/go-git/go-git/v5/plumbing.(*Reference).Hash(...)
        
/Users/mgraff/go/pkg/mod/github.com/go-git/go-git/v5@v5.13.1/plumbing/reference.go:274
   github.com/apache/skywalking-eyes/pkg/header.listFiles(0x140000bad00)
        
/Users/mgraff/go/pkg/mod/github.com/apache/skywalking-eyes@v0.7.0/pkg/header/check.go:96
 +0x4a4
   github.com/apache/skywalking-eyes/pkg/header.Check(0x140000bad00, 
0x140001e7b20)
        
/Users/mgraff/go/pkg/mod/github.com/apache/skywalking-eyes@v0.7.0/pkg/header/check.go:42
 +0x24
   github.com/apache/skywalking-eyes/commands.init.func4(0x140000baa00?, {0x0, 
0x0, 0x0})
        
/Users/mgraff/go/pkg/mod/github.com/apache/skywalking-eyes@v0.7.0/commands/header_check.go:45
 +0x118
   github.com/spf13/cobra.(*Command).execute(0x101f66220, {0x101fb5180, 0x0, 
0x0})
        /Users/mgraff/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1015 
+0x7d4
   github.com/spf13/cobra.(*Command).ExecuteC(0x101f667a0)
        /Users/mgraff/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1148 
+0x350
   github.com/spf13/cobra.(*Command).Execute(...)
        /Users/mgraff/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1071
   github.com/apache/skywalking-eyes/commands.Execute()
        
/Users/mgraff/go/pkg/mod/github.com/apache/skywalking-eyes@v0.7.0/commands/root.go:62
 +0x134
   main.main()
        
/Users/mgraff/go/pkg/mod/github.com/apache/skywalking-eyes@v0.7.0/cmd/license-eye/main.go:28
 +0x1c
   make: *** [license-check] Error 2
   ```
   
   version 0.7.0 (latest)
   
   works in the main branch:
   
   ```sh
   lakerunner(main): make license-check
   go tool license-eye header check
   INFO Loading configuration from file: .licenserc.yaml
   INFO Totally checked 452 files, valid: 264, invalid: 0, ignored: 188, fixed: 0
   ```
   
   
   ### What you expected to happen
   
   It to run :)
   
   ### How to reproduce
   
   ```sh
   git worktree add ../mybranch my branch
   cd ../mybranch
   license-eye header check
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: 
notifications-unsubscr...@skywalking.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to