From 46d1b2ad0b98e20517b75ecd9fdf3c425d36f511 Mon Sep 17 00:00:00 2001 From: GDWR Date: Sat, 3 Feb 2024 13:00:12 +0000 Subject: [PATCH] Update go module to github.com/gdwr/jetson-exporter Rename gomodule to jetson-exporter --- Makefile | 2 +- cmd/{jetson_exporter.go => jetson-exporter/main.go} | 9 +++++---- go.mod | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) rename cmd/{jetson_exporter.go => jetson-exporter/main.go} (99%) diff --git a/Makefile b/Makefile index 00496d8..5f593f1 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ dist/jetson-exporter_0.0.1_arm64.deb: cp deploy/debian/* dist/jetson-exporter/DEBIAN/ cp deploy/jetson-exporter.service dist/jetson-exporter/lib/systemd/system - GOARCH=arm64 go build -o dist/jetson-exporter/usr/bin/jetson-exporter cmd/jetson_exporter.go + GOARCH=arm64 go build -o dist/jetson-exporter/usr/bin/jetson-exporter cmd/jetson-exporter/main.go dpkg-deb --build dist/jetson-exporter dist/jetson-exporter.0.1_arm64.deb diff --git a/cmd/jetson_exporter.go b/cmd/jetson-exporter/main.go similarity index 99% rename from cmd/jetson_exporter.go rename to cmd/jetson-exporter/main.go index 865ea68..f4949d8 100644 --- a/cmd/jetson_exporter.go +++ b/cmd/jetson-exporter/main.go @@ -2,15 +2,16 @@ package main import ( "bufio" + "net/http" + "os" + "os/exec" + + "github.com/gdwr/jetson-exporter/pkg/tegrastats" "github.com/go-kit/log/level" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/common/promlog" - "jetson_exporter/pkg/tegrastats" - "net/http" - "os" - "os/exec" ) var ( diff --git a/go.mod b/go.mod index 9f20e3b..b742df7 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module jetson_exporter +module github.com/gdwr/jetson-exporter go 1.21