Skip to content

Commit e96bd11

Browse files
updates gorm and replaces sqlite with non-CGO sqlite for portability #19
1 parent cc88fae commit e96bd11

File tree

7 files changed

+123
-66
lines changed

7 files changed

+123
-66
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ build_test: build
5353
$(GO) build -o bin/test_server test/test_server.go
5454
build:
5555
$(GO) mod tidy
56-
$(GO) build -o bin/pmon3 cmd/pmon3/pmon3.go
57-
$(GO) build -o bin/pmond cmd/pmond/pmond.go
56+
CGO_ENABLED=0 $(GO) build -o bin/pmon3 cmd/pmon3/pmon3.go
57+
CGO_ENABLED=0 $(GO) build -o bin/pmond cmd/pmond/pmond.go
5858
systemd_install: systemd_uninstall install
5959
sudo cp "$(ROOTDIR)/rpm/pmond.service" /usr/lib/systemd/system/
6060
sudo cp "$(ROOTDIR)/rpm/pmond.logrotate" /etc/logrotate.d/pmond

go.mod

+24-11
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@ module pmon3
33
go 1.21
44

55
require (
6-
github.com/charmbracelet/bubbletea v0.25.0
7-
github.com/charmbracelet/lipgloss v0.9.1
8-
github.com/evertras/bubble-table v0.15.6
6+
github.com/charmbracelet/bubbletea v0.26.0
7+
github.com/charmbracelet/lipgloss v0.10.0
8+
github.com/evertras/bubble-table v0.15.7
99
github.com/gin-gonic/gin v1.9.1
1010
github.com/goinbox/shell v1.0.1
1111
github.com/google/uuid v1.6.0
12-
github.com/jinzhu/gorm v1.9.16
1312
github.com/joe-at-startupmedia/goq_responder v0.0.4
13+
github.com/joe-at-startupmedia/sqlite v0.0.1
1414
github.com/pkg/errors v0.9.1
1515
github.com/sirupsen/logrus v1.9.3
1616
github.com/spf13/cobra v1.8.0
1717
github.com/struCoder/pidusage v0.2.1
1818
github.com/tabalt/gracehttp v1.3.0
1919
google.golang.org/protobuf v1.33.0
2020
gopkg.in/yaml.v3 v3.0.1
21+
gorm.io/gorm v1.25.10
2122
)
2223

2324
require (
@@ -27,7 +28,7 @@ require (
2728
github.com/bytedance/sonic v1.9.1 // indirect
2829
github.com/charmbracelet/bubbles v0.11.0 // indirect
2930
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
30-
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
31+
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
3132
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
3233
github.com/gin-contrib/sse v0.1.0 // indirect
3334
github.com/go-playground/locales v0.14.1 // indirect
@@ -37,33 +38,45 @@ require (
3738
github.com/goinbox/gomisc v1.4.0 // indirect
3839
github.com/inconshreveable/mousetrap v1.1.0 // indirect
3940
github.com/jinzhu/inflection v1.0.0 // indirect
41+
github.com/jinzhu/now v1.1.5 // indirect
4042
github.com/joe-at-startupmedia/golang-ipc v1.2.5 // indirect
4143
github.com/json-iterator/go v1.1.12 // indirect
44+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
4245
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
4346
github.com/leodido/go-urn v1.2.4 // indirect
4447
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
4548
github.com/mattn/go-isatty v0.0.19 // indirect
4649
github.com/mattn/go-localereader v0.0.1 // indirect
4750
github.com/mattn/go-runewidth v0.0.15 // indirect
48-
github.com/mattn/go-sqlite3 v1.14.0 // indirect
4951
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5052
github.com/modern-go/reflect2 v1.0.2 // indirect
51-
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect
53+
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
5254
github.com/muesli/cancelreader v0.2.2 // indirect
5355
github.com/muesli/reflow v0.3.0 // indirect
5456
github.com/muesli/termenv v0.15.2 // indirect
5557
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
56-
github.com/rivo/uniseg v0.2.0 // indirect
58+
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect
59+
github.com/rivo/uniseg v0.4.7 // indirect
5760
github.com/spf13/pflag v1.0.5 // indirect
5861
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
5962
github.com/ugorji/go/codec v1.2.11 // indirect
6063
golang.org/x/arch v0.3.0 // indirect
6164
golang.org/x/crypto v0.9.0 // indirect
6265
golang.org/x/mod v0.10.0 // indirect
6366
golang.org/x/net v0.10.0 // indirect
64-
golang.org/x/sync v0.2.0 // indirect
65-
golang.org/x/sys v0.12.0 // indirect
66-
golang.org/x/term v0.8.0 // indirect
67+
golang.org/x/sync v0.7.0 // indirect
68+
golang.org/x/sys v0.19.0 // indirect
69+
golang.org/x/term v0.19.0 // indirect
6770
golang.org/x/text v0.9.0 // indirect
6871
golang.org/x/tools v0.9.1 // indirect
72+
lukechampine.com/uint128 v1.1.1 // indirect
73+
modernc.org/cc/v3 v3.36.0 // indirect
74+
modernc.org/ccgo/v3 v3.16.8 // indirect
75+
modernc.org/libc v1.16.19 // indirect
76+
modernc.org/mathutil v1.4.1 // indirect
77+
modernc.org/memory v1.1.1 // indirect
78+
modernc.org/opt v0.1.1 // indirect
79+
modernc.org/sqlite v1.18.1 // indirect
80+
modernc.org/strutil v1.1.1 // indirect
81+
modernc.org/token v1.0.0 // indirect
6982
)

0 commit comments

Comments
 (0)