skywalking-go icon indicating copy to clipboard operation
skywalking-go copied to clipboard

fix: The way filepath.Join is used when handling package names doesn't properly account for windows.

Open navanis opened this issue 8 months ago • 9 comments

The use of filepath.Join when handling package names does not properly account for Windows. This issue allows the application to compile on Windows, but it causes interceptors to be bypassed.

navanis avatar Apr 24 '25 17:04 navanis

After this change, is the agent able to instrument go app compiling on Windows? If so, we should at least add one plugin test on Windows to verify.

wu-sheng avatar Apr 25 '25 00:04 wu-sheng

https://github.com/apache/skywalking-go/actions/runs/14648116633/job/41125628067?pr=219

Please run lint locally, and fix the issue.

wu-sheng avatar Apr 25 '25 00:04 wu-sheng

After this change, is the agent able to instrument go app compiling on Windows? If so, we should at least add one plugin test on Windows to verify.

So far, it’s working fine on my Windows. I think we could add a plugin test similar to the macOS one, but does it need to be done in this PR?

navanis avatar Apr 25 '25 09:04 navanis

Yes, you could send a new pull request to add a windows GHA control file, without any actual tests as this isn't merged. Then we could sync that file to this PR.

The reason I asked for this is that, GHA file would not run before merging. We need the file accepted.

wu-sheng avatar Apr 25 '25 09:04 wu-sheng

Yes, you could send a new pull request to add a windows GHA control file, without any actual tests as this isn't merged. Then we could sync that file to this PR.是的,您可以发送一个新的拉取请求来添加 Windows GHA 控制文件,无需进行任何实际测试,因为该文件尚未合并。然后我们可以将该文件同步到此 PR。

The reason I asked for this is that, GHA file would not run before merging.我这样要求的原因是,GHA 文件在合并之前不会运行。 We need the file accepted.我们需要接受该文件。

I'll do this.

navanis avatar Apr 25 '25 09:04 navanis

@navanis Could you submit the required and mock GHA control file for Windows compiling through another PR first? As explained, we need to merge that first.

wu-sheng avatar Apr 29 '25 02:04 wu-sheng

@mrproliu Could you check the CI env? It seems to have docker compose version error.

wu-sheng avatar Apr 29 '25 02:04 wu-sheng

Approved https://github.com/apache/skywalking-go/pull/222

wu-sheng avatar Apr 29 '25 23:04 wu-sheng

You could add the plugin test now.

wu-sheng avatar Apr 30 '25 03:04 wu-sheng

@navanis Are you going to finish this PR soon?

wu-sheng avatar May 07 '25 03:05 wu-sheng