Skip to content

Commit 099670c

Browse files
committed
Updated dependencies and reformatted files
1 parent 519eea8 commit 099670c

File tree

14 files changed

+172
-679
lines changed

14 files changed

+172
-679
lines changed

.github/workflows/goreleaser.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: goreleaser
23

34
on:
@@ -6,23 +7,22 @@ on:
67

78
jobs:
89
goreleaser:
9-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1011
steps:
1112
- name: Checkout
12-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1314
with:
1415
fetch-depth: 0
1516

1617
- name: Set up Go
17-
uses: actions/setup-go@v2
18+
uses: actions/setup-go@v5
1819
with:
19-
go-version: 1.17.x
20+
go-version: 1.22.x
2021

2122
- name: Run GoReleaser
22-
uses: goreleaser/goreleaser-action@v2
23+
uses: goreleaser/goreleaser-action@v5
2324
with:
2425
version: latest
2526
args: release --rm-dist
26-
key: ${{ secrets.YOUR_PRIVATE_KEY }}
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ and naturally NBP.
3333

3434
## TFTP and HTTP
3535

36-
netbootd exposes all "mounts" via both TFTP and HTTP simultatenously.
36+
netbootd exposes all "mounts" via both TFTP and HTTP simultaneously.
3737
Naturally, it's not a good idea to transfer really large files over TFTP but PXE generally
3838
requires use of TFTP in most cases.
3939

api/server.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ package api
22

33
import (
44
"encoding/json"
5+
"io/ioutil"
6+
"net"
7+
"net/http"
8+
"strings"
9+
"time"
10+
511
"github.com/DSpeichert/netbootd/manifest"
612
"github.com/DSpeichert/netbootd/store"
713
"github.com/gorilla/mux"
814
"github.com/rs/zerolog"
915
"github.com/rs/zerolog/log"
1016
"gopkg.in/yaml.v2"
11-
"io/ioutil"
12-
"net"
13-
"net/http"
14-
"strings"
15-
"time"
1617
)
1718

1819
type Server struct {

cmd/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/DSpeichert/netbootd/httpd"
1212
"github.com/DSpeichert/netbootd/store"
1313
"github.com/DSpeichert/netbootd/tftpd"
14-
systemd "github.com/coreos/go-systemd/daemon"
14+
systemd "github.com/coreos/go-systemd/v22/daemon"
1515
"github.com/rs/zerolog"
1616
"github.com/rs/zerolog/log"
1717
"github.com/spf13/cobra"

dhcpd/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
package dhcpd
44

55
import (
6+
"net"
7+
68
"github.com/DSpeichert/netbootd/store"
79
"github.com/insomniacslk/dhcp/dhcpv4/server4"
810
"github.com/rs/zerolog"
911
"github.com/rs/zerolog/log"
1012
"golang.org/x/net/ipv4"
11-
"net"
1213
)
1314

1415
type Server struct {

dhcpd/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package dhcpd
22

33
import (
44
"fmt"
5+
56
"github.com/u-root/uio/uio"
67
)
78

go.mod

Lines changed: 43 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,52 @@
11
module github.com/DSpeichert/netbootd
22

3-
go 1.16
3+
go 1.23.0
4+
5+
toolchain go1.24.0
46

57
require (
6-
github.com/Masterminds/goutils v1.1.1 // indirect
7-
github.com/Masterminds/semver v1.5.0 // indirect
8-
github.com/Masterminds/sprig v2.22.0+incompatible
9-
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
10-
github.com/fsnotify/fsnotify v1.4.9
11-
github.com/google/uuid v1.2.0 // indirect
12-
github.com/gorilla/mux v1.8.0
13-
github.com/huandu/xstrings v1.3.2 // indirect
14-
github.com/imdario/mergo v0.3.12 // indirect
15-
github.com/insomniacslk/dhcp v0.0.0-20210621130208-1cac67f12b1e
16-
github.com/mitchellh/copystructure v1.2.0 // indirect
8+
github.com/Masterminds/sprig/v3 v3.3.0
9+
github.com/coreos/go-systemd/v22 v22.5.0
10+
github.com/fsnotify/fsnotify v1.9.0
11+
github.com/gorilla/mux v1.8.1
12+
github.com/insomniacslk/dhcp v0.0.0-20250417080101-5f8cf70e8c5f
1713
github.com/pin/tftp v2.1.0+incompatible
18-
github.com/rs/zerolog v1.23.0
19-
github.com/spf13/cobra v1.2.1
20-
github.com/spf13/viper v1.8.1
21-
github.com/stretchr/objx v0.1.1 // indirect
22-
github.com/u-root/uio v0.0.0-20210528151154-e40b768296a7
23-
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect
24-
golang.org/x/net v0.0.0-20210614182718-04defd469f4e
25-
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
14+
github.com/rs/zerolog v1.34.0
15+
github.com/spf13/cobra v1.9.1
16+
github.com/spf13/viper v1.20.1
17+
github.com/u-root/uio v0.0.0-20240224005618-d2acac8f3701
18+
golang.org/x/net v0.42.0
19+
golang.org/x/sys v0.34.0
2620
gopkg.in/yaml.v2 v2.4.0
2721
)
2822

23+
require (
24+
dario.cat/mergo v1.0.2 // indirect
25+
github.com/Masterminds/goutils v1.1.1 // indirect
26+
github.com/Masterminds/semver/v3 v3.4.0 // indirect
27+
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
28+
github.com/google/uuid v1.6.0 // indirect
29+
github.com/huandu/xstrings v1.5.0 // indirect
30+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
31+
github.com/mattn/go-colorable v0.1.14 // indirect
32+
github.com/mattn/go-isatty v0.0.20 // indirect
33+
github.com/mitchellh/copystructure v1.2.0 // indirect
34+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
35+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
36+
github.com/pierrec/lz4/v4 v4.1.22 // indirect
37+
github.com/rogpeppe/go-internal v1.12.0 // indirect
38+
github.com/sagikazarmark/locafero v0.10.0 // indirect
39+
github.com/shopspring/decimal v1.4.0 // indirect
40+
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect
41+
github.com/spf13/afero v1.14.0 // indirect
42+
github.com/spf13/cast v1.9.2 // indirect
43+
github.com/spf13/pflag v1.0.7 // indirect
44+
github.com/stretchr/objx v0.5.2 // indirect
45+
github.com/subosito/gotenv v1.6.0 // indirect
46+
golang.org/x/crypto v0.40.0 // indirect
47+
golang.org/x/text v0.27.0 // indirect
48+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
49+
gopkg.in/yaml.v3 v3.0.1 // indirect
50+
)
51+
2952
replace github.com/pin/tftp => github.com/digitalrebar/tftp v0.0.0-20200914190809-39d58dc90c67

0 commit comments

Comments
 (0)