Skip to content

Commit aebfb97

Browse files
authored
Merge pull request #52 from skx/update
Avoid issues with renamed modules, by dropping peerd.
2 parents 6c5518b + 9a5b61a commit aebfb97

File tree

7 files changed

+61
-2106
lines changed

7 files changed

+61
-2106
lines changed

README.md

-7
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,6 @@ for the `README.md` files as used on github.
274274
This tool generates a single random password each time it is executed, it is designed to be quick and simple to use, rather than endlessly configurable.
275275

276276

277-
## peerd
278-
279-
This deamon provides the ability to maintain a local list of available cluster-members, via the JSON file located at `/var/tmp/peerd.json`.
280-
281-
See the usage-information for more (`sysbox help peerd`).
282-
283-
284277
## run-directory
285278

286279
Run every executable in the given directory, optionally terminate if any command returns a non-zero exit-code.

cmd_password.go

-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"flag"
55
"fmt"
66
"math/rand"
7-
"time"
87
)
98

109
// Structure for our options and state.
@@ -44,7 +43,6 @@ flags if necessary.`
4443

4544
// Execute is invoked if the user specifies `make-password` as the subcommand.
4645
func (p *passwordCommand) Execute(args []string) int {
47-
rand.Seed(time.Now().UnixNano())
4846

4947
// Alphabets we use for generation
5048
//

cmd_peerd.go

-243
This file was deleted.

cmd_splay.go

-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ natural usage you may specify as the first argument:
4949
// Execute is invoked if the user specifies `splay` as the subcommand.
5050
func (s *splayCommand) Execute(args []string) int {
5151

52-
// Ensure we seed our random number generator.
53-
rand.Seed(time.Now().UnixNano())
54-
5552
// If the user gave an argument then use it.
5653
//
5754
// Because people might expect this to work.

go.mod

+24-22
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
module github.com/skx/sysbox
22

3-
go 1.16
3+
go 1.21
4+
5+
toolchain go1.22.5
46

57
require (
6-
github.com/armon/go-metrics v0.4.1 // indirect
7-
github.com/creack/pty v1.1.18
8-
github.com/gdamore/tcell/v2 v2.6.0
9-
github.com/google/btree v1.1.2 // indirect
8+
github.com/creack/pty v1.1.21
9+
github.com/gdamore/tcell/v2 v2.7.4
1010
github.com/google/goexpect v0.0.0-20210430020637-ab937bf7fd6f
11-
github.com/google/goterm v0.0.0-20200907032337-555d40f16ae2 // indirect
12-
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
13-
github.com/hashicorp/go-msgpack v0.5.5 // indirect
14-
github.com/hashicorp/go-multierror v1.1.1 // indirect
15-
github.com/hashicorp/go-sockaddr v1.0.4 // indirect
16-
github.com/hashicorp/go-uuid v1.0.1 // indirect
17-
github.com/hashicorp/golang-lru v1.0.2 // indirect
18-
github.com/hashicorp/memberlist v0.5.1-0.20230206163934-e5eb6d78d6f2
19-
github.com/mattn/go-runewidth v0.0.15 // indirect
20-
github.com/miekg/dns v1.1.55 // indirect
2111
github.com/nightlyone/lockfile v1.0.0
2212
github.com/peterh/liner v1.2.2
23-
github.com/rivo/tview v0.0.0-20230826224341-9754ab44dc1c
24-
github.com/rivo/uniseg v0.4.4 // indirect
13+
github.com/rivo/tview v0.0.0-20240807205129-e4c497cc59ed
2514
github.com/skx/subcommands v0.9.2
26-
golang.org/x/net v0.14.0
27-
golang.org/x/term v0.12.0
28-
golang.org/x/text v0.13.0 // indirect
29-
golang.org/x/tools v0.12.0 // indirect
30-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
15+
golang.org/x/net v0.28.0
16+
golang.org/x/term v0.23.0
3117
gopkg.in/yaml.v2 v2.4.0
3218
)
19+
20+
require (
21+
github.com/gdamore/encoding v1.0.1 // indirect
22+
github.com/google/goterm v0.0.0-20200907032337-555d40f16ae2 // indirect
23+
github.com/kr/pretty v0.3.1 // indirect
24+
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
25+
github.com/mattn/go-runewidth v0.0.16 // indirect
26+
github.com/rivo/uniseg v0.4.7 // indirect
27+
golang.org/x/crypto v0.26.0 // indirect
28+
golang.org/x/sys v0.24.0 // indirect
29+
golang.org/x/text v0.17.0 // indirect
30+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240808171019-573a1156607a // indirect
31+
google.golang.org/grpc v1.65.0 // indirect
32+
google.golang.org/protobuf v1.34.2 // indirect
33+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
34+
)

0 commit comments

Comments
 (0)