proc: add dummy files to fix vendoring of Delve (#2807)

Add some dummy go files so that 'go mod vendor' works for modules that
require Delve, becuase directories that do not contain any go code will
not be vendored.
This commit is contained in:
Alessandro Arzilli 2021-12-07 18:20:10 +01:00 committed by GitHub
parent 1a815365d5
commit 2cd9d268d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

@ -0,0 +1,4 @@
//go:build dummy
// +build dummy
package ebpf

@ -0,0 +1,4 @@
//go:build dummy
// +build dummy
package ebpf

@ -0,0 +1,14 @@
//go:build dummy
// +build dummy
// This file is part of a workaround for `go mod vendor` which won't
// vendor C files if there are no Go files in the same directory.
//
// See https://github.com/golang/go/issues/26366
package ebpf
import (
_ "github.com/go-delve/delve/pkg/proc/internal/ebpf/bpf"
_ "github.com/go-delve/delve/pkg/proc/internal/ebpf/bpf/include"
)