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

   ### 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-agent hybrid compilation under Windows platform cannot copy source files 
correctly.
   
   ### What you expected to happen
   
   I checked the source code. This may be because the path separator under 
Windows is different from the path separator under Unix platform. As a result, 
go-agent cannot correctly find the source file and copy it.
   
   ### How to reproduce
   
   When we execute the following command:
   `D:\code\component-demo\skywalking-go-demo> go build 
-toolexec="D:\code\component-demo\sw-go\skywalking-go-agent-0.4.0-windows-amd64.exe"
 -a -o test .`
   
   
   This error is always thrown:
   ```
   # runtime/metrics
   2024/04/12 23:02:43 open operator\common.go: file does not exist
   # github.com/apache/skywalking-go/agent/reporter
   2024/04/12 23:02:59 open reporter\grpc: file does not exist
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [X] 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