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

   ### 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
   
   Go Agent (apache/skywalking-go)
   
   ### What happened
   
   go 1.23  build err,tip $WORK/b012/skywalking_tls_operator.go:6:9: could not 
import runtime/internal/atomic (open : no such file or directory)
   
   env:  mac os m1 ; go1.23
   go skywking agent version : 0.4.0
   
   build cmd: go build -toolexec 
"/awesomeProject/skywaking/tools/go-agent/go-agent" -a -o  ./test 
awesomeProject/skywaking
   
   code : `package main
   
   import (
        _ "github.com/apache/skywalking-go"
        "log"
        "net/http"
   )
   
   func main() {
        http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
                w.Write([]byte("Hello, SkyWalking!"))
        })
   
        log.Fatal(http.ListenAndServe(":8081", nil))
   }`
   
   
   
   
   ### What you expected to happen
   
   build success
   
   ### How to reproduce
   
   go 1.23  build err,tip $WORK/b012/skywalking_tls_operator.go:6:9: could not 
import runtime/internal/atomic (open : no such file or directory)
   
   env:  mac os m1 ; go1.23
   go skywking agent version : 0.4.0
   
   build cmd: go build -toolexec 
"/awesomeProject/skywaking/tools/go-agent/go-agent" -a -o  ./test 
awesomeProject/skywaking
   
   code : `package main
   
   import (
        _ "github.com/apache/skywalking-go"
        "log"
        "net/http"
   )
   
   func main() {
        http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
                w.Write([]byte("Hello, SkyWalking!"))
        })
   
        log.Fatal(http.ListenAndServe(":8081", nil))
   }`
   
   
   
   
   ### 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: 
[email protected]

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

Reply via email to