Use replace syntax for custom sys fork

This commit is contained in:
2025-04-05 16:05:38 -04:00
parent d116525c2b
commit 081b05659a
7 changed files with 10 additions and 8 deletions
+3 -1
View File
@@ -2,4 +2,6 @@ module github.com/rwinkhart/peercred-mini
go 1.24.2 go 1.24.2
require github.com/rwinkhart/sys-freebsd-13-xucred v0.0.0-20250405011819-d304d362d032 require golang.org/x/sys v0.32.0
replace golang.org/x/sys => github.com/rwinkhart/sys-freebsd-13-xucred v0.0.0-20250405010723-99a5f0732c0e
+2 -2
View File
@@ -1,2 +1,2 @@
github.com/rwinkhart/sys-freebsd-13-xucred v0.0.0-20250405011819-d304d362d032 h1:4qzc09ysQhkyI2oN7pLbZMQP+qHq2TlVRCkMSmbl8m8= github.com/rwinkhart/sys-freebsd-13-xucred v0.0.0-20250405010723-99a5f0732c0e h1:YRpZcbGU/LVLwK87IURH4Sfye6Fv0ri1IRZ27loWpHs=
github.com/rwinkhart/sys-freebsd-13-xucred v0.0.0-20250405011819-d304d362d032/go.mod h1:U89aT1yaUAbs+9Dp9i1lZ2+5GsRNYk0l42+d1wykDBA= github.com/rwinkhart/sys-freebsd-13-xucred v0.0.0-20250405010723-99a5f0732c0e/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"net" "net"
"strconv" "strconv"
"github.com/rwinkhart/sys-freebsd-13-xucred/unix" "golang.org/x/sys/unix"
) )
func get(c *net.UnixConn) (*Creds, error) { func get(c *net.UnixConn) (*Creds, error) {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"net" "net"
"strconv" "strconv"
"github.com/rwinkhart/sys-freebsd-13-xucred/unix" "golang.org/x/sys/unix"
) )
func get(c *net.UnixConn) (*Creds, error) { func get(c *net.UnixConn) (*Creds, error) {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"net" "net"
"strconv" "strconv"
"github.com/rwinkhart/sys-freebsd-13-xucred/unix" "golang.org/x/sys/unix"
) )
func get(c *net.UnixConn) (*Creds, error) { func get(c *net.UnixConn) (*Creds, error) {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"net" "net"
"strconv" "strconv"
"github.com/rwinkhart/sys-freebsd-13-xucred/unix" "golang.org/x/sys/unix"
) )
func get(c *net.UnixConn) (*Creds, error) { func get(c *net.UnixConn) (*Creds, error) {
+1 -1
View File
@@ -7,7 +7,7 @@ package peercred
import ( import (
"fmt" "fmt"
"github.com/rwinkhart/sys-freebsd-13-xucred/windows" "golang.org/x/sys/windows"
) )
// Get returns the peer credentials for c. // Get returns the peer credentials for c.