From 8db41da676ac8368ef7c2549d56239a5ff5eedde Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Tue, 2 Jan 2024 18:56:31 +0100 Subject: Delete vendor directory --- vendor/github.com/rs/xid/hostid_linux.go | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 vendor/github.com/rs/xid/hostid_linux.go (limited to 'vendor/github.com/rs/xid/hostid_linux.go') diff --git a/vendor/github.com/rs/xid/hostid_linux.go b/vendor/github.com/rs/xid/hostid_linux.go deleted file mode 100644 index 837b204..0000000 --- a/vendor/github.com/rs/xid/hostid_linux.go +++ /dev/null @@ -1,13 +0,0 @@ -// +build linux - -package xid - -import "io/ioutil" - -func readPlatformMachineID() (string, error) { - b, err := ioutil.ReadFile("/etc/machine-id") - if err != nil || len(b) == 0 { - b, err = ioutil.ReadFile("/sys/class/dmi/id/product_uuid") - } - return string(b), err -} -- cgit v1.2.3