Fixed by removing //go:build cmd tag.
On Friday, November 28, 2025 at 9:42:31 AM UTC+3 fatih K wrote:

> Hi,I'm facing an issue with go workspaces.My project structure is like 
> root directory 
> - go.work file in root 
> daemon directory 
>    daemon go.mod 
> cmd directory 
>    cmd go.mod,
> and go.work file is 
> go 1.25.4
>
> use (
> ./cmd
> ./daemon
> ), go mod files are 
> module github.com/fatih881/ebpf-ips/daemon
>
> go 1.25.4
>
> require ( ... 
> and 
> module github.com/fatih881/ebpf-ips/cmd
>
> go 1.25.4
> in the cmd/main.go file,I have an error in 
> //go:build cmd
>
> package main
> No packages found for open file /home/sysadmin/ebpf-ips-safe/cmd/main.go. 
> I tried troubleshooting for a while but I can't find a solution.I can 
> provide more info in need or create a issue if it's a bug.Thanks.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/4b613152-13bd-42be-85d9-ce9d0b91cad5n%40googlegroups.com.

Reply via email to