Skip to content

Commit

Permalink
Fix Go mod path (#226)
Browse files Browse the repository at this point in the history
In order to update to v2.0.0, we need to update the module path per the
Go module documentation.
* https://go.dev/doc/modules/major-version

Fixes: #225

This can be released as v2.0.1

Signed-off-by: SuperQ <superq@gmail.com>
  • Loading branch information
SuperQ authored May 10, 2024
1 parent 61ed88f commit 8026e5d
Show file tree
Hide file tree
Showing 35 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion address.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"

"github.com/mdlayher/netlink"
)
Expand Down
2 changes: 1 addition & 1 deletion address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"
"github.com/mdlayher/netlink/nlenc"
)

Expand Down
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding"
"time"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"

"github.com/mdlayher/netlink"
)
Expand Down
4 changes: 2 additions & 2 deletions driver/bond.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"
"github.com/mdlayher/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion driver/bond_live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"github.com/mdlayher/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion driver/driver.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package driver

import (
"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// init registers predefined drivers with the rtnetlink package.
Expand Down
2 changes: 1 addition & 1 deletion driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os/exec"
"testing"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"golang.org/x/sys/unix"
)

Expand Down
4 changes: 2 additions & 2 deletions driver/netkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"
"github.com/mdlayher/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion driver/netkit_live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"github.com/mdlayher/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion driver/veth.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package driver
import (
"fmt"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"github.com/mdlayher/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion driver/veth_live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package driver
import (
"testing"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"github.com/mdlayher/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion example_address_add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion example_address_del_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion example_address_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion example_link_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rtnetlink_test
import (
"log"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// List all interfaces
Expand Down
2 changes: 1 addition & 1 deletion example_link_setdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// Set the operational state an interface to Down
Expand Down
2 changes: 1 addition & 1 deletion example_link_sethwaddr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// Set the hw address of an interface
Expand Down
2 changes: 1 addition & 1 deletion example_link_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion example_neigh_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion example_route_add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion example_rule_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rtnetlink_test
import (
"log"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// List all rules
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/jsimonetti/rtnetlink
module github.com/jsimonetti/rtnetlink/v2

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion link.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"

"github.com/mdlayher/netlink"
)
Expand Down
2 changes: 1 addition & 1 deletion neigh.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"

"github.com/mdlayher/netlink"
)
Expand Down
2 changes: 1 addition & 1 deletion neigh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"
)

// Tests will only pass on little endian machines
Expand Down
2 changes: 1 addition & 1 deletion netns.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"path/filepath"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"
)

// NetNS represents a Linux network namespace
Expand Down
2 changes: 1 addition & 1 deletion route.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"unsafe"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"

"github.com/mdlayher/netlink"
)
Expand Down
2 changes: 1 addition & 1 deletion route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"
)

// Tests will only pass on little endian machines
Expand Down
4 changes: 2 additions & 2 deletions rtnl/addr.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package rtnl
import (
"net"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// AddrAdd associates an IP-address with an interface.
Expand Down
2 changes: 1 addition & 1 deletion rtnl/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package rtnl

import (
"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
"github.com/mdlayher/netlink"
)

Expand Down
4 changes: 2 additions & 2 deletions rtnl/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package rtnl
import (
"net"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// Links return the list of interfaces available on the system.
Expand Down
2 changes: 1 addition & 1 deletion rtnl/neigh.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rtnl
import (
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// Neigh represents a neighbour table entry (e.g. an entry in the ARP table)
Expand Down
4 changes: 2 additions & 2 deletions rtnl/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"net"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// Route represents a route table entry
Expand Down
2 changes: 1 addition & 1 deletion rtnl/route_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rtnl
import (
"net"

"github.com/jsimonetti/rtnetlink"
"github.com/jsimonetti/rtnetlink/v2"
)

// RouteOptions is the functional options struct
Expand Down
2 changes: 1 addition & 1 deletion rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"errors"
"net"

"github.com/jsimonetti/rtnetlink/internal/unix"
"github.com/jsimonetti/rtnetlink/v2/internal/unix"
"github.com/mdlayher/netlink"
)

Expand Down

0 comments on commit 8026e5d

Please sign in to comment.