Skip to content

Commit

Permalink
Update build tags to new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Mar 29, 2024
1 parent 0b7cab3 commit c0c97de
Show file tree
Hide file tree
Showing 47 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion api/server/no_packet_injector.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !packetinject
//go:build !packetinject

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion api/server/packet_injector.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build packetinject
//go:build packetinject

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion cmd/allinone/allinone.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion cmd/injector/standalone.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2019 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion cmd/injector/standalone_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2019 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion ebpf/tests/tests.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ebpf
//go:build ebpf

/*
* Copyright (C) 2019 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/ebpf.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/no_bpf.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2018 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/no_ebpf.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/dpdk/dpdk.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build dpdk
//go:build dpdk

/*
* Copyright (C) 2017 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/dpdk/no_dpdk.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !dpdk
//go:build !dpdk

/*
* Copyright (C) 2017 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/ebpf/ebpf.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ebpf
//go:build ebpf

/*
* Copyright (C) 2017 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/ebpf/no_ebpf.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !ebpf
//go:build !ebpf

/*
* Copyright (C) 2017 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/gopacket/afpacket.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/gopacket/gopacket.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/gopacket/no_gopacket.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/gopacket/pcap.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2018 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/ovsmirror/ovsmirror.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2017 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion flow/probes/targets/no_erspan.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2019 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion skydive.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !prof
//go:build !prof

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion skydive_prof.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build prof
//go:build prof

/*
* Copyright (C) 2016 Red Hat, Inc.
Expand Down
1 change: 0 additions & 1 deletion tools.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build tools
// +build tools

/*
* Copyright (C) 2019 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/libvirt/libvirtgo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build libvirt,linux
//go:build linux && libvirt

/*
* Copyright (C) 2018 Orange.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/libvirt/no_libvirt.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2018 Orange
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/lldp/lldp.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2018 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/lldp/no_lldp.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2018 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/lxd/lxd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux,lxd
//go:build linux && lxd

/*
* Copyright (C) 2018 Iain Grant
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/lxd/no_lxd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux !lxd
//go:build !linux || !lxd

/*
* Copyright (C) 2018 Iain Grant
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/netlink/netlink.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2015 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/netlink/no_netlink.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2015 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/netlink/sriov.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2019 Orange.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/netns/netns.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2015 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/netns/no_netns.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2018 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/opencontrail/no_opencontrail.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux !opencontrail
//go:build !linux || !opencontrail

/*
* Copyright (C) 2018 Orange, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/opencontrail/opencontrail.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux,opencontrail
//go:build linux && opencontrail

/*
* Copyright (C) 2016 Orange, Inc.
Expand Down
3 changes: 2 additions & 1 deletion topology/probes/opencontrail/routing_table.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build linux,opencontrail
//go:build linux && opencontrail

//go:generate go run github.com/mailru/easyjson/easyjson -build_tags opencontrail $GOFILE

/*
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/ovn/no_ovn.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !ovn
//go:build !ovn

/*
* Copyright (C) 2019 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/ovn/ovn.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build ovn
//go:build ovn

/*
* Copyright (C) 2019 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/runc/no_runc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2018 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/runc/runc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2018 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/socketinfo/no_socket_info.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

/*
* Copyright (C) 2018 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/socketinfo/socket_info.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2019 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/socketinfo/socket_info_ebpf.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux,ebpf
//go:build linux && ebpf

/*
* Copyright (C) 2017 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/socketinfo/socket_info_noebpf.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux,!ebpf
//go:build linux && !ebpf

/*
* Copyright (C) 2017 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/socketinfo/socket_info_proc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

/*
* Copyright (C) 2017 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/vpp/no_vpp.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux !vpp
//go:build !linux || !vpp

/*
* Copyright (C) 2018 Red Hat, Inc.
Expand Down
2 changes: 1 addition & 1 deletion topology/probes/vpp/vpp.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build vpp,linux
//go:build linux && vpp

//go:generate go run git.fd.io/govpp.git/cmd/binapi-generator --input-file=/usr/share/vpp/api/interface.api.json --output-dir=./bin_api
//go:generate go run git.fd.io/govpp.git/cmd/binapi-generator --input-file=/usr/share/vpp/api/vpe.api.json --output-dir=./bin_api
Expand Down

0 comments on commit c0c97de

Please sign in to comment.